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 Explorer 9


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


To invoke this event, do one of the following:

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

See also




Build date: 1/25/2012