Get error file url : onerror : Window JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Window » onerror »

 

Get error file url

















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







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Window
» onerror