Mega Code Archive

 
Categories / JavaScript Tutorial / Window
 

Return true from window onerror event

< html>     <head>         <title>OnError Example</title>         <script type="text/javascript">             window.onerror = function () {                 alert("An error occurred.");                 return true;             }         </script>     </head>     <body onload="nonExistentFunction()">     </body> </html>