Difference between revisions of "DOM/window.onerror"

From W3C Wiki
< DOM
Jump to: navigation, search
(creating window.onerror)
(No difference)

Revision as of 17:34, 21 October 2011

Description

window.onerror is a handler catching all error events and sending them to the window.

Use cases

The main use case for window.onerror is a simple way to collect programming errors occurring within the page. The context could listen all errors of a Web page and for example send them to a server.