onseeked
Event
Example
Execute JavaScript after the user repositions the playback position of the video:
More examples are included at the bottom of this page.
Definition and Usage
The onseeked event is triggered after the user repositions the playback position of the video/audio (audio/video).
Tip: The opposite of the onseeked event is the onseeking event.
Tip: Use currentTime to set or return the current playback position of the video/audio (audio/video).
Browser Support
The numbers in the table specify the first browser version that fully supports the event.
Event | Chrome | IE | Firefox | Safari | Opera |
---|---|---|---|---|---|
onseeked | Yes | 9.0 | Yes | Yes | Yes |
Syntax
In HTML:
In JavaScript:
In JavaScript, using the addEventListener() method:
Note: The addEventListener() method is not supported by Internet Explorer 8 and earlier versions.
Bubbles: | No |
---|---|
Cancelable: | No |
--- | --- |
Event Type: | Event |
--- | --- |
Supported HTML Tags: | <audio>, <video> |
--- | --- |
More Examples
Example
This example demonstrates the difference between the onseeking event and the onseeked event:
Example
After the user repositions the video playback position, you can use the currentTime property of the Video object to display the current playback position:
Example
Execute JavaScript after the audio playback position is repositioned: