The onloadedmetadata property sets and returns the event handler for the loadedmetadata event.


element.onloadedmetadata = handlerFunction;
var handlerFunction = element.onloadedmetadata;

handlerFunction should be either null or a JavaScript function specifying the handler for the event.


See the DOM event handlers page for information on working with on... handlers.

The loadedmetadata event is fired when the metadata has been loaded.

See the loadedmetadata event documentation for more information about the event.


Specification Status Comment
HTML Living Standard
The definition of 'loadedmetadata' in that specification.
Living Standard  

Document Tags and Contributors

 Contributors to this page: rolfedh, Guillaume-Heras
 Last updated by: rolfedh,