HTML onpause attribute: The HTML onpause attribute used to trigger an event when the audio/video is paused either by the user or programmatically. The onpause attribute is a part of the Event attribute. And the onplay attribute is used to define a script to run when the audio/video has been started or is no longer paused.
HTML onpause attribute
This attribute can be used with both <audio> and <video> elements.
Syntax: <element onpause=”script”>
This attribute supports different types of browsers. They are as follows:
- Internet Explorer – 9.0