How To Use Javascript To Turn Off Html5 Audio When Checkbox Is Unchecked?
I have the following javascript code to play some HTML5 sounds: var html5_audiotypes={ //define list of audio file extensions and their associated audio types. Add to it if you
Solution 1:
Nevermind, I solved it. I was thinking too hard, it can be done very simple:
if (document.getElementById('sound').checked){
sound1.playclip();
}
This works
Post a Comment for "How To Use Javascript To Turn Off Html5 Audio When Checkbox Is Unchecked?"