function pauseAll() { var audios = document.querySelectorAll('audio'); for(var i = 0; i < audios.length; i++) audios[i].pause(); }