Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Onload event with sound

Status
Not open for further replies.

simon373

Programmer
Oct 25, 2006
25
Hi,

I would like to play a sound when the web page loads, but I do not want to see the media player.

Currently, my code is:


<script language="JavaScript">
function tigerRoar(){
window.location= "music/roar1.wav"
}

</script>

onload="tigerRoar()"

This plays the sound but causes media player to open in front of the web page.

Thanks for your help.

Simon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top