how to set audio.play() to false code example Example: html play audio programmatically document.getElementById('yourAudioTag').play();