onpause event
Occurs when playback is paused.
![]() ![]() |
Syntax
| HTML Attribute | <element onpause = "handler(event)"> |
|---|---|
| Event Property | object.onpause = handler; |
| attachEvent Method | object.attachEvent("onpause", handler) |
| addEventListener Method | object.addEventListener("pause", handler, useCapture) |
Event information
| Synchronous | No |
|---|---|
| Bubbles | No |
| Cancelable | No |
Event handler parameters
- pEvtObj [in]
-
Type: Event
Standards information
- HTML5 A vocabulary and associated APIs for HTML and XHTML, Section 4.8.9.12
Remarks
To invoke this event, do one of the following:
- Call the IHTMLMediaElement::pause method.
- Click the pause button on the embedded media controls.
See also
- How to use HTML5 to play video files on your webpage
- How to use HTML5 to Add an Audio Player to your Webpage
- Make your videos accessible with Timed Text Tracks
Build date: 11/12/2012

