HTML onloadeddata Attribute

❮ HTML Attributes


<video id="myVideo" onloadeddata="myFunction()">


The onloadeddata script run when the browser has loaded the current frame of the audio/video.

Standard Syntax

<element onloadeddata="script">

Browser Support


Applies to:

The onloadeddata attribute can be used on the following element:

Element Attribute
<audio> loadeddata
<video> loadeddata

Attribute Values

Value Description
script Specifies the script to be run on onloadeddata.
❮ HTML Attributes