onplay event
Occurs when the IHTMLMediaElement::play method is requested.
![]() ![]() |
Syntax
| HTML Attribute | <element onplay = "handler(event)"> |
|---|---|
| Event Property | object.onplay = handler; |
| attachEvent Method | object.attachEvent("onplay", handler) |
| addEventListener Method | object.addEventListener("play", 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::play method.
- Click the play 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
- onplaying
Build date: 11/12/2012

