error

Test page.

Events overview page.

The error event fires when the browser encounters a JavaScript error or when an asset does not exist.

Test IE 5.5 IE 6 IE 7 IE8 IE9 IE10 pr2 FF 7.0 Win FF 6.1 Mac Saf 5.1 Win Saf 5.1 Mac Chrome 14 Win Chrome 13 Mac Opera 11.51 Win Opera 11.51 Mac
JavaScript error
Yes Yes Almost Yes No

When the browser encounters a JavaScript error it does the following:

  • With traditional registration the browser fires an event with type undefined from the test link. (Except Safari, which fires it from an undefined node.)
  • With the other event registrations the browser fires an error event from the window.
Image source wrong
Yes Yes Yes Yes Yes

When an image file does not exist the error event should fire from the <img> node.

Script source wrong
Not tested No Yes Incomplete Yes Yes No

When a script file does not exist the error event should fire from the <script> node.

  • In traditional registration Firefox fires an event with type undefined from the test link, and bubbles it up to document and window.
CSS source wrong
Not tested Incomplete No No No No

When a CSS file does not exist the error event should fire from the <link> node.

  • IE fires the event the second and subsequent times, but not the first time.
iframe source wrong
Not tested No No No No No

When an HTML file loaded into an iframe does not exist the error event should fire from the <iframe> node. At least, that would make sense, wouldn’t it?

Test IE 5.5 IE 6 IE 7 IE8 IE9 IE10 pr2 FF 7.0 Win FF 6.1 Mac Saf 5.1 Win Saf 5.1 Mac Chrome 14 Win Chrome 13 Mac Opera 11.51 Win Opera 11.51 Mac