I am using the javascript Audio object to play an mp3
var myAudio = new Audio('alarm.mp3');
myAudio.play();
This works fine if I don't have a dialog. But if I add one
var response = confirm("press ok if you are awake");
Then playback stops until I close the dialog window. Is there a way to prevent playback from being stopped by a dialog?