Web/API/ErrorEvent

From Get docs

The ErrorEvent interface represents events providing information related to errors in scripts or in files.

Properties

Also inherits properties from its parent Event.

ErrorEvent.message Read only
Is a DOMString containing a human-readable error message describing the problem.
ErrorEvent.filename Read only
Is a DOMString containing the name of the script file in which the error occurred.
ErrorEvent.lineno Read only
Is an integer containing the line number of the script file on which the error occurred.
ErrorEvent.colno Read only
Is an integer containing the column number of the script file on which the error occurred.
ErrorEvent.error Read only '
Is a JavaScript Object that is concerned by the event.

Constructor

ErrorEvent()
Creates an ErrorEvent event with the given parameters.

Methods

Inherits methods from its parent Event.

Specifications

Specification Status Comment
HTML Living StandardThe definition of 'ErrorEvent' in that specification. Living Standard Added the error property and the 5th parameter to the constructor.
HTML5The definition of 'ErrorEvent' in that specification. Recommendation Initial definition.

Browser compatibility

Update compatibility data on GitHub

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
ErrorEvent Chrome

Full support 10

Edge

Full support 12

Firefox

Full support Yes

IE

Full support Yes

Opera

Full support 11

Safari

Full support Yes

WebView Android

Full support Yes

Chrome Android

Full support 18

Firefox Android

Full support Yes

Opera Android

Full support 11

Safari iOS

Full support Yes

Samsung Internet Android

Full support 1.0

ErrorEvent() constructor Chrome

Full support Yes

Edge

Full support ≤79

Firefox

?

IE

?

Opera

Full support Yes

Safari

?

WebView Android

Full support Yes

Chrome Android

Full support Yes

Firefox Android

?

Opera Android

Full support Yes

Safari iOS

?

Samsung Internet Android

Full support Yes

colno Chrome

Full support Yes

Edge

Full support 12

Firefox

Full support Yes

IE

?

Opera

Full support Yes

Safari

Full support Yes

WebView Android

Full support Yes

Chrome Android

Full support Yes

Firefox Android

Full support Yes

Opera Android

Full support Yes

Safari iOS

Full support Yes

Samsung Internet Android

Full support Yes

error

Experimental'

Chrome

Full support Yes

Edge

Full support 12

Firefox

Full support Yes

IE

?

Opera

Full support Yes

Safari

Full support Yes

WebView Android

Full support Yes

Chrome Android

Full support Yes

Firefox Android

Full support Yes

Opera Android

Full support Yes

Safari iOS

Full support Yes

Samsung Internet Android

Full support Yes

filename Chrome

Full support 10

Edge

Full support 12

Firefox

Full support Yes

IE

?

Opera

Full support 11

Safari

Full support Yes

WebView Android

Full support Yes

Chrome Android

Full support 18

Firefox Android

Full support Yes

Opera Android

Full support 11

Safari iOS

Full support Yes

Samsung Internet Android

Full support 1.0

lineno Chrome

Full support 10

Edge

Full support 12

Firefox

Full support Yes

IE

?

Opera

Full support 11

Safari

Full support Yes

WebView Android

Full support Yes

Chrome Android

Full support 18

Firefox Android

Full support Yes

Opera Android

Full support 11

Safari iOS

Full support Yes

Samsung Internet Android

Full support 1.0

message Chrome

Full support 10

Edge

Full support 12

Firefox

Full support Yes

IE

?

Opera

Full support 11

Safari

Full support Yes

WebView Android

Full support Yes

Chrome Android

Full support 18

Firefox Android

Full support Yes

Opera Android

Full support 11

Safari iOS

Full support Yes

Samsung Internet Android

Full support 1.0

Legend

Full support  
Full support
Compatibility unknown  
Compatibility unknown
Experimental. Expect behavior to change in the future.'
Experimental. Expect behavior to change in the future.


See also