//Fire the sound. EvalSound('paint'); // Play sound events.. function EvalSound(soundobj) { var thissound=document.getElementById(soundobj); thissound.Play(); } <embed src='./sounds/paint.wav' volume='100' autostart='false' width='0' height='0' id='paint' enablejavascript='true'></embed>