I have a "button" submitting a form. I have a "button" that will play a sound (.wav file).

But, for the life of me - I cannot get the "button" to play a sound THEN submit the form.

I put the "play sound" JavaScript in a function followed by the "submit form" JavaScript, but because the sound is being used as a background sound <bgsound>, it's submitting the form and of course not playing a background sound since the page has lost focus.

So, how can I get it to play a sound THEN submit??

All help is very much appreciated!