Share via


onplay event

[This documentation is preliminary and is subject to change.]

Occurs when the play method is requested.

HTML5 A vocabulary and associated APIs for HTML and XHTML, Section 4.8.9.12Internet Explorer 9

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)

Standards information

Event information

Synchronous No
Bubbles No
Cancelable No

Event handler parameters

Remarks

To invoke this event, do one of the following:

  • Call the play method.
  • Click the play button on the embedded media controls.

See also

onplaying

 

 

Build date: 1/25/2012