Advertisement
Home Open Editor ❯

HTML onloadedmetadata Attribute

Example

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

Try this code ❯

Meaning

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


Standard Syntax

<element onloadedmetadata="script">


Applies to:

The onloadedmetadata attribute can be used on the following element:


Advertisement

Attribute Values

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