This is DOC for audio on web pages. (html / php / java) ==================== There are two new HTML constructs: and Both can play on load or not; both can display controls or not. AUDIO doesn't work on my Firefox. EMBED takes java ptr.Stop() to stop the sound AUDIO takes java ptr.pause() to stop the sound The general aim is, if the sound automatically starts on page load, to have ways to shut it up, using java and events. E.g. a) Any click: stop it; permanently. Should be able to change src of but have to remove it from DOM. b) Any mouse move away from some appropriate area (or any move at all), pause it I used DIV to enclose the "good area"; BODY to catch other events and stop it. Div catches good events and suppresses them. : java .Stop() pauses it. java .Play() resumes it if half way through; restarts it if finished. has these java fields apparently: e.setAttribute('src','beep.mp3'); e.setAttribute('id',sId); e.setAttribute('hidden','true'); e.setAttribute('autostart','true'); e.setAttribute('loop','true') Generic java for audio: load(), play(), pause(); Others suggest controlling the sound by adding/ removing the from the DOM tree. ==================== scrap code sample from moocs.html