onloadeddata event

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

Occurs when media data is loaded at the current playback position.

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


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

Standards information

Event information

Synchronous No
Bubbles No
Cancelable No

Event handler parameters


The onloadeddata event is raised when data for the immediate current playback position is available. However, it does not guarantee that enough data is available to successfully begin playback.

This event occurs after onloadedmetadata and before oncanplay.

To invoke this event, do one of the following:

  • Load a media resource.

See also






Build date: 1/25/2012