I have a problem running this code in firefox. It’s ok in chrome but there is a problem with firefox in that it won’t run. When it should be executed, the browser does nothing and stays at the home screen. These are the methods that make the code stop being executed
function muteAudio(){
backMus.volume -= 0.01;
var voldown=setTimeout("muteAudio()", 20);
if (backMus.volume <= 0.02){
clearTimeout(voldown);
backMus.muted = true;
}
}
Any ideas would be gratefully received,
Thanks
backMusis an id of some element and you didn’t define this variable explicitly, do you?