Tutorials References Exercises Videos Menu
Create Website Get Certified Upgrade

HTML onseeked Attribute


Definition and Usage

The onseeked attribute defines a script to run when the user is finished moving/skipping to a new position in the audio/video.

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


Applies to

The onseeked attribute is part of the Event Attributes, and can be used on the following elements:

Elements Event
<audio> seeked
<video> seeked

Examples

Audio Example

Run "myFunction" when the audio changes the position:

<audio onseeked="myFunction()">
Try it Yourself »

Video Example

Run "myFunction" when the video changes the position:

<video onseeked="myFunction()">
Try it Yourself »

Browser Support

The onseeked attribute has the following browser support for each element:

Element
audio Yes 9.0 Yes Yes Yes
video Yes 9.0 Yes Yes Yes