onloadedmetadata event Event Object Example Execute JavaScript after the video's metadata is loaded: Try it » The bottom of this article contains more examples. Definition and Usage The onloadedmetadata event is triggered after the metadata of the specified video/audio (audio/video) is loaded. The metadata of video/audio (audio/video) includes: duration, dimensions (for video), and text tracks. During the loading of video/audio (audio/video), the triggering order is as follows: onloadstart ondurationchange onloadedmetadata onloadeddata onprogress oncanplay oncanplaythrough Browser support The numbers in the table indicate the version number of the first browser to support the event. Events onloadedmetadata Yes 9.0 Yes Yes Yes Syntax In HTML: < element onloadedmetadata=" myScript ">Try it In JavaScript: object .onloadedmetadata=function(){ myScript }; Try it In JavaScript, use the addEventListener() method: object .addEventListener("loadedmetadata", myScript ); Try it Note: Internet Explorer 8 and earlier IE versions do not support addEventListener() method. Technical Details Does it support bubbling: No Is it cancelable: No Event type: Event Supported HTML tags: , More examples Example Execute JavaScript after the audio's metadata is loaded: Try it » Event Object