Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

onended event

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)

 

Event information

SynchronousNo
BubblesNo
CancelableNo

 

Event handler parameters

pEvtObj [in]

Type: Event

Standards information

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.

 

 

Community Additions

Show:
© 2014 Microsoft