Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
onloadedmetadata

onloadedmetadata event

Occurs when the duration and dimensions of the media have been determined.

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

 

Syntax

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

 

Event information

SynchronousNo
BubblesNo
CancelableNo

 

Event handler parameters

handler [in]

Type: function

Event handler object.

Standards information

Remarks

The onloadedmetadata event is raised when enough of the resource has been obtained to know the full duration of the resource. In the case of a video element, the dimensions of the video are also known.

This event occurs after ondurationchange.

To invoke this event, do one of the following:

  • Load a media resource.

See also

Reference
onloadstart
onloadeddata

 

 

Community Additions

ADD
Show:
© 2015 Microsoft