<!DOCTYPE html>
<html>
<body>
<h1>HTML DOM Events</h1>
<h2>The onseeking Event</h2>
<p>Assign an "onseeking" event to an audio element.</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>
<p>Try to move to a new position in the audio.</p>
<p id="demo"></p>
<script>
function myFunction() {
document.getElementById("demo").innerHTML += "Seek operation began! ";
}
</script>
</body>
</html>