HTML onloadedmetadata Attribute

❮ HTML Attributes


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


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

Standard Syntax

<element onloadedmetadata="script">

Browser Support


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