Window on error event : onerror : Window JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Window » onerror »

 

Window on error event

















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







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Window
» onerror