'onError' Example
<html> <head> <script language="JavaScript"> window.onerror = alert("Errors") </script> </head> <body> </body> </html>