HTML onpause Attribute

❮ HTML Attributes

Example

<video onpause="myFunction()">

Meaning

The pause event run when the audio/video has been paused.




Standard Syntax

<element onpause="script">



Browser Support




Status




Applies to:

The onpause attribute can be used on the following element:

Element Attribute
<audio> pause
<video> pause






Attribute Values

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