Easy Tutorial
❮ Att Source Type Att Script Defer ❯

HTML Audio/Video DOM suspend Event

HTML Audio/Video DOM Reference Manual

Example

Display a prompt message when media data loading is blocked:


Definition and Usage

The suspend event is fired when the browser deliberately does not load media data.

This event is triggered when media data loading is blocked. It can be triggered after loading is complete or due to being paused.

Tip: Events that affect media data loading include:


Browser Support

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

Event
suspend 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 Source Type Att Script Defer ❯