JavaScript/HTML - Alert box goes before sound?

richellealene

New Member
The code:\[code\]x = new Audio("bar.wav")x.play()alert("foo")\[/code\]Why does the alert box show up first and then then sound is played??
 
Back
Top