Easy Tutorial
❮ Att Keygen Name Att Form Name ❯

HTML Audio/Video DOM error Event

HTML Audio/Video DOM Reference Manual

Example

Display an error message when a video load error occurs:


Definition and Usage

The error event is triggered when an error occurs while loading audio/video.

Tip: Events that affect multimedia data loading include:


Browser Support

The numbers in the table represent the first browser version that supports the event.

Event
error Yes 9.0 Yes Yes Yes

Syntax

In HTML:

In JavaScript:

In JavaScript, using the addEventListener() method:

Note: Internet Explorer 8 and earlier versions do not support the addEventListener() method.


Supported HTML Tags: <audio> and <video>
Supported JavaScript Objects: Audio, Video
--- ---
❮ Att Keygen Name Att Form Name ❯