Advertisement
Home Open Editor ❯

HTML Audio/Video DOM seeked Event

Example

//Accessing the element
var vid = document.getElementById("myVideo");

//Creating a function
vid.onseeked = function() {
    alert("Seeking completed!");
};

Try this code ❯

Meaning

The seeked event run when the user is finished moving/skipping to a new position in the audio/video.


Standard Syntax

HTML:

<element onseeked="myScript">

JavaScript:

object.onseeked=function(){myScript};

JavaScript, using the addEventListener() method::

object.addEventListener("seeked", myScript);


Advertisement

Technical Details

Type Description
Supported HTML tags: <audio> and <video>
Supported JavaScript objects: Audio, Video
Home Open Editor ❯
Advertisement