Easy Tutorial
❮ Att Table Cellpadding Att Video Loop ❯

HTML Audio/Video DOM seeked Event

HTML Audio/Video DOM Reference Manual

Example

Popup a text message when the user has finished setting a new playback position for the video:

More examples are included at the bottom of this page.


Definition and Usage

The seeked event is fired when the user has finished moving/jumping to a new position in the audio/video (audio/video).

Tip: The opposite of the seeked event is the seeking event.

Tip: Use the currentTime property of the Audio/Video object to get the current playback position of the video.


Browser Support

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

Event Chrome IE Firefox Safari Opera
seeked 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.


Supported HTML Tags: <audio> and <video>
Supported JavaScript Objects: Audio, Video
--- ---

More Examples

Example

This example demonstrates the difference between the seeking event and the seeked event:

Example

Use the currentTime property of the Video object to display the current playback position when the user finishes moving/jumping to a new video position:

Example

Popup a message when the user finishes moving/jumping to a new playback position in the audio:

var aud = document.getElementById("myAudio");
aud.onseeked = function() {
    alert("Seek operation completed!");
};

❮ Att Table Cellpadding Att Video Loop ❯