THE WORLD'S LARGEST WEB DEVELOPER SITE

HTML onsuspend Attribute


Definition and Usage

The onsuspend attribute defines a script to run when the browser is intentionally not getting media data.

This event occurs when the loading of the media is suspended (prevented from continuing). This can happen when the download has completed, or because it has been paused for some reason.

Tip: Related events that occurs when there is some kind of disturbance to the media loading process, are:


Applies to

The onsuspend attribute is part of the Event Attributes, and can be used on the following elements:

Elements Event
<audio> suspend
<video> suspend

Browser Support

The onsuspend attribute has the following browser support for each element:

Element
audio Yes 9.0 Yes Yes Yes
video Yes 9.0 Yes Yes Yes