Advertisement
Home Open Editor ❯

HTML onsuspend Attribute

Example

<video onsuspend="myFunction">

Meaning

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


Standard Syntax

<element onsuspend="script">


Applies to:

The onsuspend attribute can be used on the following element:

Element Attribute
<audio> suspend
<video> suspend

Advertisement

Attribute Values

Value Description
script Specifies a script that run when the media is suspend.
Home Open Editor ❯
Advertisement