TOC PREV NEXT INDEX

Put your logo here!


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. 


mozilla.org | mailto:oeschger | bug 93108
TOC PREV NEXT INDEX