Latest web development tutorials

onprogress event

Event Object Reference Event objects

Examples

Video is executing JavaScript downloading:

<Video onprogress = "myFunction ()">

try it"

Bottom of this article contains more examples.


Definition and Usage

Onprogress trigger event specified in the browser to download video / audio (audio / video) time.

Download video / audio (audio / video) during the sequence of events triggered as follows:

  1. onloadstart
  2. ondurationchange
  3. onloadedmetadata
  4. onloadeddata
  5. onprogress
  6. oncanplay
  7. oncanplaythrough

Browser Support

Figures in the table represent the first browser to support this version of events.

event
onprogress Yes 9.0 Yes Yes Yes


grammar

In HTML:

<Elementonprogress = "myScript"> try

In JavaScript:

object .onprogress = function () {myScript }; try

JavaScript, use the addEventListener () method:

object .addEventListener ( "progress", myScript ); try

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


technical details
Whether to support the bubble: No
It can be canceled: No
Event Type: Event
Supported HTML tags: <Audio>, <video>


Examples

More examples

Examples

Audio is executing JavaScript downloading:

<Audio onprogress = "myFunction ()">

try it"


Event Object Reference Event objects