HTML onloadeddata Attribute

HTML onloadeddata Attribute: The HTML onloadeddata attribute is defined as an event occurs when data for the current frame is loaded, but not enough data to play next frame of the specified audio/video. Metadata for audio/video consists of duration, dimensions (video only) and text tracks.

During the loading process of an audio/video, the following events occur, in this order:

  • loadstart
  • durationchange
  • loadedmetadata
  • loadeddata
  • progress
  • canplay
  • canplaythrough

HTML onloadeddata Attribute

This attribute can be applied on the <audio> and <video> elements.

Syntax: <audio onloadedmetadata=”script”>

Browser Support

This attribute is supported by the following browsers:

  • Chrome
  • Safari
  • Internet Explorer-9.0
  • Opera
  • Firefox