Easy Tutorial
❮ Jsref Break Prop Pushbutton Form ❯

onprogress Event

Event Object

Example

Execute JavaScript while the video is downloading:

More examples are included at the bottom of this article.


Definition and Usage

The onprogress event is triggered when the browser is downloading the specified audio/video.

During the process of downloading audio/video, the events are triggered in the following order:


Browser Support

The numbers in the table specify the first browser version that supports the event.

Event
onprogress Yes 9.0 Yes Yes Yes

Syntax

In HTML:

In JavaScript:

In JavaScript, using the addEventListener() method:

Note: Internet Explorer 8 and earlier versions do not support the addEventListener() method.


Bubbles: No
Cancelable: No
--- ---
Event Type: Event
--- ---
Supported HTML Tags: <audio>, <video>
--- ---

More Examples

Example

Execute JavaScript while the audio is downloading:


❮ Jsref Break Prop Pushbutton Form ❯