onprogress Event in JavaScript
onprogress Event in JavaScript
The onprogress event is used to trigger when the browser is downloading the specified audio or video.
During the loading process, the following events occur in the media:-
- onloadstart
- ondurationchange
- onloadedmetadata
- onloadeddata
- onprogress
- oncanplay
- oncanplaythrough
Syntax:-
Its syntax is:- < element onprogress="my_script" > OR object.onprogress= function(){my_script} OR object.addEventListener("progress", my_script)