Stop an audio file playing in html page : Im programming a very basic text adventure to show my 8 year old "old computer games". I have music playing and I want it to stop when I get to the game over routine.
I initialize it in the body:
 >   <audio id="music" src="sw_music.mp3" autoplay></audio>
and try to stop it here:
>		  case 25://You're dead
>		  document.getElementById("audio"); 
>		  audio.pause();

Thanks for any help I get. If any more code is needed, please advise. I tried using the audio stop in a function but it did not stop.

I also use a laser blast audio component:
>  	<audio id="laser" src="Laser.mp3"></audio>
