``` More examples are included"> ``` More examples are included" />
Easy Tutorial
❮ Prop Audio Texttracks Prop Style Fontvariant ❯

onloadeddata Event

Event Object

Example

Execute JavaScript when the data for the current frame is available ( <video>):

<video onloadeddata="myFunction()">

More examples are included at the bottom of this page.


Definition and Usage

The onloadeddata event is triggered when the data for the current frame is loaded, but there is not enough data to play the next frame of the video/audio (audio/video).

The sequence of events when loading 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
onloadeddata Yes 9.0 Yes Yes Yes

Syntax

In HTML:

In JavaScript:

In JavaScript, using the addEventListener() method:

Note: The addEventListener() method is not supported in Internet Explorer 8 and earlier versions.


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

More Examples

Example

Execute JavaScript when the data for the current frame is available ( <audio>):

<audio onloadeddata="myFunction()">

❮ Prop Audio Texttracks Prop Style Fontvariant ❯