20 Error handling

The user must add onError code into any tags where an error must be caught.

You can tell JavaScript to run a custom error handling
function
like
this
:

window.onerror
=
myErrorHandler;

where the windows onerror proprery is assigned the name of your customized error handling
function
.
The
function
must accept 3 parameters
-
a string message, URL of page causing error, and line number of error.