How would I write a function that stops ALL instances of playing html5 audio in the DOM?
html5 audio
first you have to set an id for your audio element
in your js :
var ply = document.getElementById('player');
var oldSrc = ply.src;// just to remember the old source
var oldSrc = ply.src;
ply.src = "";// to stop the player you have to replace the source with nothing
ply.src = "";