Advertisement
Home Open Editor ❯

HTML onloadeddata Attribute

Example

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

Try this code ❯

Meaning

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


Standard Syntax

<element onloadeddata="script">


Applies to:

The onloadeddata attribute can be used on the following element:

Element Attribute
<audio> loadeddata
<video> loadeddata

Advertisement

Attribute Values

Value Description
script Specifies the script to be run on onloadeddata.
Home Open Editor ❯
Advertisement