ErrorEvent
The ErrorEvent interface represents events providing information related to errors in scripts or in files.
Instance properties
Also inherits properties from its parent Event.
ErrorEvent.messageRead only-
A string containing a human-readable error message describing the problem. Lacking a
crossoriginsetting reduces error logging. ErrorEvent.filenameRead only-
A string containing the name of the script file in which the error occurred.
ErrorEvent.linenoRead only-
An
integercontaining the line number of the script file on which the error occurred. ErrorEvent.colnoRead only-
An
integercontaining the column number of the script file on which the error occurred. ErrorEvent.errorRead only-
A JavaScript
Objectthat is concerned by the event.
Constructor
ErrorEvent()-
Creates an
ErrorEventevent with the given parameters.
Instance methods
Inherits methods from its parent Event.
Specifications
| Specification |
|---|
| HTML Standard # the-errorevent-interface |
Browser compatibility
BCD tables only load in the browser
See also
- Using web workers, most likely objects to raise such an event