TOC PREV NEXT INDEX

domref



window.onerror


An event handler for error events sent to the window.

Syntax

window.onerror = funcRef
 

Parameters

funcRef is a reference to a function.

Example

window.onerror = null;
 

Notes

The error event is raised when an error occurs in the script. The example above prevents error dialogs from displaying-which is the window's normal behavior-by overriding the default event handler for error events that go to the window.

Specification

DOM Level 0. Not part of specification.
 


Netscape Communications
http://developer.netscape.com
TOC PREV NEXT INDEX