HTML onsuspend Attribute

❮ HTML Attributes

Example

<video onsuspend="myFunction">

Meaning

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




Standard Syntax

<element onsuspend="script">



Browser Support




Status




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