Javascript examples for DOM HTML Element:Audio
Create Audio and set HTML5 Audio Looping
<html> <head></head> <body> <script> var audio = new Audio("http://example.com/your file.mp3"); audio.addEventListener('canplaythrough', function() { this.currentTime = this.duration - 10; this.loop = true;//from ww w.ja v a 2 s .c o m this.play(); }); </script> </body> </html>