HTML Audio/Video DOM loadstart Event
HTML Audio/Video DOM Reference
Example
Display a message when the video starts loading:
myVid=document.getElementById("video1");
myVid.onloadstart=alert("Starting to load video");
Try it »
Definition and Usage
The loadstart event occurs when the browser starts looking for the specified audio/video, that is, when the loading process begins.
While the audio/video is loading, the following events occur in order:
Browser support





All major browsers support the loadstart event.
**Note:** Internet Explorer 8 and earlier versions do not support this event.
Syntax
In HTML: