ErrorHandler

This is the home of the JavaScript ErrorHandler object. You can download it from here.

The purpose of this object is simply to report any JavaScript errors that may have accumulated during the parsing/execution of the JavaScript on your web page.

Background

The JavaScript API documents that an engine will call the function that is bound to the window.onError attribute, when a parsing error or an execution error occurs in a piece of code. This little library snippet binds a handler function to that attribute so that we capture every error on the page.

Usage

To use this library you should do something like:

<html>
	<head>
		<!-- load the error handler before doing anything else -->
		<script language="JavaScript" src="error_handler.js"></script>
		...
	</head>
	<body>
		...
	</body>
</html>