Javascript examples for DOM Event:onseeking
Execute a JavaScript when moving/skipping to a new position in the audio:
<!DOCTYPE html> <html> <body> <audio controls onseeking="myFunction()"> <source src="your.ogg" type="audio/ogg"> <source src="your.mp3" type="audio/mpeg"> Your browser does not support the audio element. </audio>/*from w w w . j av a 2 s . co m*/ <script> function myFunction() { console.log("Seek operation began!"); } </script> </body> </html>