Give sound to ASP.NET page. How to make the system beep after the page is loaded?

I have an application, i want to have it beep when the page id finished loading. Is there any way that doesn't leave any media player, graphs, on the end page when playing? All i need is just  a beep after page is loading. I used:
<img dynsrc="images/chimes.wav" />

But doesn't work except leave an image sign in the end page. Any idea to play chimes.wav for the confirmation of valid user input?
heyday2004Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mmarinovCommented:
Hi heyday2004,

try something like that

<script language="javascript">
function play()
{
    document.forms[0].bgs1.disabled=true;
}
</script>

<body onload="play();">
<bgsound src="images/chimes.wav" disabled="true" id="bgs1">

Regards!
B..M
mmarinov
0
ihenryCommented:
I was using the trick below, give it a try

http://www.tips-tricks.com/sound.asp
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ihenryCommented:
Excerpt from the article

--
WIDTH and HEIGHT This is how the sound control (console) will be displayed. Setting them as the given numbers, browsers will display a full console. Setting the width=0 and height=2, the console will not displayed by the browsers. Other values that too small will cause the browsers display uncompleted image. You might also hide it by placing HIDDEN=true like this: <EMBED SRC=your_file.mid AUTOSTART=true HIDDEN=true LOOP=1>
--
0
heyday2004Author Commented:
Thanks a lot! ihenry: I tested what you suggested and it works!

mmarinov: I tested the javascript, but it always reported something like: document.forms[0].bgs1: null object, etc. Have you met this before?

Thanks again and i will split the points later today.
0
mmarinovCommented:
may be because there is id attribute instead of name

<bgsound src="images/chimes.wav" disabled="true" name="bgs1">

but if the ihenry solution is correct and it is working - i think that the question is answered :-)
don't worry about the points

B..M
mmarinov
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.