[whatwg] window.onerror

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

Received on Sunday, 22 August 2004 13:27:13 UTC