Therefore myAudio = new Audio("foo.wav"); myAudio.onload = function () { this.play(); myAudio = null; }will work, and will play until the sound ends or the user leaves the page.
That matches what Opera implements, too. -- Anne van Kesteren <http://annevankesteren.nl/> <http://www.opera.com/>