The onpause property sets and returns the event handler for the pause event.


element.onpause = handlerFunction;
var handlerFunction = element.onpause;

handlerFunction should be either null or a JavaScript function specifying the handler for the event.


See the DOM event handlers page for information on working with on... handlers.

The pause event is fired when playback has been paused.

See the pause event documentation for more information about the event.


Specification Status Comment
HTML Living Standard
The definition of 'pause' in that specification.
Living Standard  

Document Tags and Contributors

 Contributors to this page: rolfedh, Guillaume-Heras
 Last updated by: rolfedh,