Advertisement
Home Open Editor ❯

HTML onpause Attribute

Example

<video onpause="myFunction()">

Try this code ❯

Meaning

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


Standard Syntax

<element onpause="script">


Applies to:

The onpause attribute can be used on the following element:

Element Attribute
<audio> pause
<video> pause

Advertisement

Attribute Values

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