onseeking event Event Object Example Execute JavaScript when the user begins to relocate the video playback position: Try it » The bottom of this article contains more examples. Definition and Usage The onseeking event is triggered when the user begins to relocate the video/audio (audio/video). Tip: The opposite of the onseeking event is the onseeked events. Tip: Use currentTime property, which can set or return the current playback position of the video/audio (audio/video). Browser support The numbers in the table indicate the version number of the first browser to support the event. Events onseeking Yes 9.0 Yes Yes Yes Syntax In HTML: < element onseeking=" myScript ">Try it In JavaScript: object .onseeking=function(){ myScript }; Try it In JavaScript, use the addEventListener() method: object .addEventListener("seeking", myScript ); Try it Note: Internet Explorer 8 and earlier IE versions do not support addEventListener() method. Technical Details Does it support bubbling: No Is it cancelable: No Event type: Event Supported HTML tags: , More examples Example The following example demonstrates the difference between the onseeking and onseeked events: Try it » Example When the user begins to relocate the playback position, you can use the currentTime property of the Video object to display the current playback position: // Get the element with id="myVideo" Element var x = document.getElementById("myVideo"); // If the seek starts, i.e. add to the seeking event, and execute the corresponding function x.addEventListener("seeking", myFunction); function myFunction() { // Display the element with id="demo" current playback position of the video in the element document.getElementById("demo").innerHTML = x.currentTime; } Try it » Example Execute JavaScript when the audio begins to relocate its playback position: Try it » Event Object