``` More examples are included at the bottom of this page."> ``` More examples are included at the bottom of this page." />
Easy Tutorial
❮ Prop Area Hash Prop Text Placeholder ❯

onloadstart Event

Event Object

Example

Execute JavaScript when a video starts loading:

<video onloadstart="myFunction()">

More examples are included at the bottom of this page.


Definition and Usage

The onloadstart event is triggered when the browser starts seeking the specified video/audio (audio/video).

The sequence of events triggered during the loading of a video/audio (audio/video) is as follows:


Browser Support

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

Event Chrome IE Firefox Safari Opera
onloadstart 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 when an audio starts loading:

<audio onloadstart="myFunction()">

❮ Prop Area Hash Prop Text Placeholder ❯