HTML Audio/Video DOM loadeddata Event
Example
//Accessing the element
var vid = document.getElementById("myVideo");
//Creating a function
vid.onloadeddata = function() {
alert("Browser has been loaded");
};
Meaning
The loadeddata event run when the browser has loaded the current frame of the audio/video.
Standard Syntax
HTML:
<element onloadeddata="myScript">
JavaScript:
object.onloadeddata=function(){myScript};
JavaScript, using the addEventListener() method::
object.addEventListener("loadeddata", myScript);
Advertisement