I am new to HTML5 and I am exploring HTML5 features. There I came across audio tag. I written code with it to play sound files. I am having one problem with this tag. O
Try this:
try { if(MyAudio != undefined) { MyAudio.pause(); } MyAudio = new Audio("filename"); MyAudio.play(); } catch(v) { //alert(v.message); }