W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2004

[whatwg] window.onerror

From: Olav Junker Kjr <olav@olav.dk>
Date: Sun, 22 Aug 2004 22:27:13 +0200
Message-ID: <412901A1.4000100@olav.dk>
Ian Hickson wrote:
>>It would be nice to formalize window.onerror as part of WAML. It is widely
>>supported (at least both IE and Mozilla has it) but not part of any standard
>>as far as I know. I think it is important for the robustness of web apps.
> Is there any documentation that defines exactly what it is?

It's an event handler that is called when an error happens in script - 
kind of like a global catch-block.

This is the documentation for IE:
And this is for Mozilla:

Olav Junker Kj?r
Received on Sunday, 22 August 2004 13:27:13 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:36 UTC