So, we should avoid overusing this method because it stops the user from accessing the other parts of the webpage until the box is closed. The alert dialog box takes the focus and forces the user to read the specified message. When the dialog box pops up, we have to click "OK" to proceed. It displays an alert dialog box that consists of some specified message (which is optional) and an OK button. It is mostly used to give a warning message to the users. ![]() The alert() method in JavaScript is used to display a virtual alert box.
0 Comments
Leave a Reply. |