I have downloaded the latest version of html5shiv.zip and showed them in my page's head. But audio tag is not working on my page. Here is my function that is supposed to play sound when User clicks some button:
function playSounds() {
var snd = new Audio("./alertbox/operator.wav");
snd.play();
}
html5shiv is only a simple shim for making custom elements work in IE. It does not polyfill the HTML5 APIs. If you need a polyfill, use something like webshims
I have downloaded the latest version of html5shiv.zip and showed them in my page's head. But audio tag is not working on my page. Here is my function that is supposed to play sound when User clicks some button:
function playSounds() { var snd = new Audio("./alertbox/operator.wav"); snd.play(); }
And here is my code in my page header:
But it's not playing sound on button click. What am I doing wrong?