Edit This Code:
<!DOCTYPE html>
<html>
<body>

<p>This example demonstrates how to assign an "onseeking" event to a video element.</p>

<p>Move to a new position in the video.</p>

<video controls onseeking="myFunction()">
  <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="http://www.bigbuckbunny.org/" target="_blank">Big Buck Bunny</a>.</p>

<script>
function myFunction() {
    alert("Seek operation began!");
}
</script>

</body>
</html>


Result:
Try it Yourself - © w3schools.com
Privacy Policy