HTML onpause Attribute
HTML onpause Attribute
The onpause attribute is used to define a script to be run when the audio or video is paused either programmatically or by the user. It is the opposite of onplay attribute which defines a script when audio or video is just started or is no longer paused.
Used With:-
Elements | Event |
---|---|
audio | pause |
video | pause |
Syntax:-
Its syntax is:- < element onpause="your_script" >