<!DOCTYPE html>
<html>
<body>

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

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

<audio controls onseeking="myFunction()">
  <source src="horse.ogg" type="audio/ogg">
  <source src="horse.mp3" type="audio/mpeg">
  Your browser does not support the audio element.
</audio>

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

</body>
</html>