Javascript examples for DOM Event:onseeked
Execute a JavaScript when moved/skipped to a new position in the audio:
<!DOCTYPE html> <html> <body> <audio controls onseeked="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 ww . j a v a 2 s . c om*/ <script> function myFunction() { console.log("Seek operation completed!"); } </script> </body> </html>