Share via


onended event

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

Occurs when the end of playback is reached.

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

Syntax

HTML Attribute <element onended = "handler(event)">
Event Property object.onended = handler;
attachEvent Method object.attachEvent("onended", handler)
addEventListener Method object.addEventListener("ended", handler, useCapture)

Standards information

Event information

Synchronous No
Bubbles No
Cancelable No

Event handler parameters

Remarks

This is the last event raised by media playback.

To invoke this event, do one of the following:

  • Play the media to its full duration.
  • Set currentTime past the end of the media.

 

 

Build date: 1/25/2012