onError
The instruction(s) to be executed are placed within quotes. This event handler will execute the instruction(s) when an error has occurred in a script

. The following example will display text of your choosing in a message box when an error has occurred in a script:
onError="msgWindow.document.write('-- Insert text message here --')"
This Event Handler is used with the following:

IMG


LINK
OBJECT
SCRIPT
STYLE