<!DOCTYPE html>
<html>
<body>
<h1>HTML DOM Events</h1>
<h2>The onseeked Event</h2>
<p>Use the HTML DOM to assign an "onseeked" event to a video element.</p>
<video controls id="myVideo">
<source src="mov_bbb.mp4" type="video/mp4">
<source src="mov_bbb.ogg" type="video/ogg">
Your browser does not support HTML5 video.
</video>
<p>Video courtesy of <a href="https://www.bigbuckbunny.org/" target="_blank">Big Buck Bunny</a>.</p>
<p>Try to move to a new position in the video.</p>
<p id="demo"></p>
<script>
document.getElementById("myVideo").onseeked = function() {myFunction()};
function myFunction() {
document.getElementById("demo").innerHTML += "Seek operation completed! ";
}
</script>
</body>
</html>