[whatwg] window.onerror

Olav Junker Kjær olav at olav.dk
Sun Aug 22 13:27:13 PDT 2004


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:
http://msdn.microsoft.com/workshop/author/dhtml/reference/events/onerror.asp
And this is for Mozilla:
http://www.mozilla.org/docs/dom/domref/dom_window_ref58.html

Olav Junker Kjær



More information about the whatwg mailing list