HTML onloadedmetadata Attribute

❮ HTML Attributes

Example

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

Meaning

The onloadedmetadata script run when the browser has loaded meta data for the audio/video.




Standard Syntax

<element onloadedmetadata="script">



Browser Support




Status




Applies to:

The onloadedmetadata attribute can be used on the following element:

Element Attribute
<audio> loadedmetadata
<video> loadedmetadata






Attribute Values

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