onplaying event
Occurs when the audio or video has started playing.
![]() ![]() |
Syntax
| HTML Attribute | <element onplaying = "handler(event)"> |
|---|---|
| Event Property | object.onplaying = handler; |
| attachEvent Method | object.attachEvent("onplaying", handler) |
| addEventListener Method | object.addEventListener("playing", 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:
- Start playing the media element.
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
- onplay
Build date: 11/12/2012

