HTML onpause attribute

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”>



Browser Support

This attribute supports different types of browsers. They are as follows:

  • Chrome
  • Firefox
  • Internet Explorer – 9.0
  • Safari
  • Opera