The following APIs include an error event. Click the link for the API whose version of error you're looking for.
- DOM UI Events:
HTMLElement:errorevent - HTML Media Elements:
HTMLMediaElement:errorevent - MediaStream Recording API:
MediaRecorder:errorevent - WebRTC:
RTCDataChannel:errorevent
The error event is fired when an error has occurred; the exact circumstances vary since events by this name are used from a variety of APIs.
General info
| Specification | Document Object Model (DOM) Level 3 Events Specification |
|---|---|
| Interface | UIEvent if generated by a user interface element, MediaRecorderErrorEvent if generated by the MediaStream Recording API, and Event otherwise. |
| Bubbles | No |
| Cancelable | No |
| Target | Element |
| Default Action | None |
See also
GlobalEventHandlers.onerror- Events sent to
Window.onerrorandElement.onerror HTMLMediaElement.onerror- Events sent to
HTMLMediaElement, including<audio>and<video> MediaRecorder.onerror- Events sent to
MediaRecorder.onerror, of typeMediaRecorderErrorEvent
Document Tags and Contributors
Tags:
Contributors to this page:
mdnwebdocs-bot,
Sheppy,
mfluehr,
ExE-Boss,
fscholz,
Nickolay,
teoli,
ethertank,
louisremi
Last updated by:
mdnwebdocs-bot,