HTML onsuspend Attribute

❮ HTML Attributes


<video onsuspend="myFunction">


The suspend event run when the browser is intentionally not getting media data.

Standard Syntax

<element onsuspend="script">

Browser Support


Applies to:

The onsuspend attribute can be used on the following element:

Element Attribute
<audio> suspend
<video> suspend

Attribute Values

Value Description
script Specifies a script that run when the media is suspend.
❮ HTML Attributes