The ErrorEvent
interface represents events providing information related to errors in scripts or in files.
Also inherits properties from its parent Event
.
ErrorEvent.message
Read only
DOMString
containing a human-readable error message describing the problem.ErrorEvent.filename
Read only
DOMString
containing the name of the script file in which the error occurred.ErrorEvent.lineno
Read only
integer
containing the line number of the script file on which the error occurred.ErrorEvent.colno
Read only
integer
containing the column number of the script file on which the error occurred.ErrorEvent.error
Read only
Object
that is concerned by the event.ErrorEvent()
ErrorEvent
event with the given parameters.Inherits methods from its parent Event
.
Specification | Status | Comment |
---|---|---|
HTML Living Standard The definition of 'ErrorEvent' in that specification. | Living Standard | Added the error property and the 5th parameter to the constructor. |
HTML5 The definition of 'ErrorEvent' in that specification. | Recommendation | Initial definition. |
Desktop | ||||||
---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | |
Basic support | Yes | Yes | Yes | Yes | Yes | Yes |
ErrorEvent() constructor |
? | ? | ? | ? | ? | ? |
colno |
? | ? | ? | ? | ? | ? |
error
|
? | ? | ? | ? | ? | ? |
filename |
? | ? | ? | ? | ? | ? |
lineno |
? | ? | ? | ? | ? | ? |
message |
? | ? | ? | ? | ? | ? |
Mobile | |||||||
---|---|---|---|---|---|---|---|
Android webview | Chrome for Android | Edge Mobile | Firefox for Android | Opera for Android | iOS Safari | Samsung Internet | |
Basic support | Yes | Yes | Yes | Yes | Yes | Yes | ? |
ErrorEvent() constructor |
? | ? | ? | ? | ? | ? | ? |
colno |
? | ? | ? | ? | ? | ? | ? |
error
|
? | ? | ? | ? | ? | ? | ? |
filename |
? | ? | ? | ? | ? | ? | ? |
lineno |
? | ? | ? | ? | ? | ? | ? |
message |
? | ? | ? | ? | ? | ? | ? |
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/ErrorEvent