Get to know MDN better
Note: This feature is available in Web Workers.
The ErrorEvent interface represents events providing information related to errors in scripts or in files.
Event ErrorEventCreates an ErrorEvent event with the given parameters.
Also inherits properties from its parent Event.
ErrorEvent.message Read onlyA string containing a human-readable error message describing the problem.
ErrorEvent.filename Read onlyA string containing the name of the script file in which the error occurred.
ErrorEvent.lineno Read onlyAn integer containing the line number of the script file on which the error occurred.
ErrorEvent.colno Read onlyAn integer containing the column number of the script file on which the error occurred.
ErrorEvent.error Read onlyA JavaScript value, such as an Error or DOMException, representing the error associated with this event.
Inherits methods from its parent Event.
| HTML # errorevent |
Enable JavaScript to view this browser compatibility table.
This page was last modified on Oct 15, 2024 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.