Implementation ideas:
Rewrite the "alert" method. The rewritten syntax is: "old method = function (parameter) {content of the new method}" , the return value should be "false", which means no operation is performed.
Specific code:
<script LANGUAGE="JavaScript"> <!-- window.alert = function(str){ return ; } alert("不能弹出警示框");//--> </script>
Recommended tutorial: js entry tutorial
The above is the detailed content of How to close the javascript warning box. For more information, please follow other related articles on the PHP Chinese website!