Disable the method that invalidates the JavaScript Alert pop-up box. Disable criptalert
This article describes how to invalidate the Alert pop-up box of JavaScript, that is, disabling the JS pop-up warning box.
Because the green internet environment is promoted now, the pop-up box will inevitably affect your mood, so the following code can block the Js pop-up box.
<Script LANGUAGE = "JavaScript"> <! -- Window. alert = function (str) {return;} alert ("alert box cannot be displayed"); // --> </script>
The implementation idea is to rewrite the "alert" method. The rewrite syntax is: "old method = function (parameter) {content of the new method }". The return value must be "false", indicating that no operation is performed. You can also enter javascript: alert (window. alert = function (str) {return;}) in the address bar ;});
Javascript js alert pop-up box
Brother, alert does not belong to JS. It is implemented by calling the system interface. After it pops up, you must click OK to close it or use the task manager.
You can stop the service three seconds later. Instead of using alert, you must define a layer similar to the pop-up warning box to use JS to control it.
In JavaScript learning, the aler () function does not display a warning box, but the alert () function can be triggered with a button to bring up a warning box.
All aler () function names are written incorrectly ....