471,852 Members | 1,280 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,852 software developers and data experts.

Replace alert system sound with custom sound

Hello, I'm trying to find a way to replace the user's alert system sound with a custom sound in the following script. Can someone please point me in the right direction?

Expand|Select|Wrap|Line Numbers
  1. <script type="text/javascript">
  2. var monitor = setTimeout("alert('The monitor is working');",0);
  3. </script>
Sep 16 '07 #1
2 1969
5,390 Expert Mod 4TB
hi ...

unfortunatly or better fortunatly i think you cannot override the system-sound ... but you may open a custom alert-message with window.open(params); and play a sound you like with that ... but when using the standards alert then you have to live with the standards alert-sound too :) ... its by design - a desired behaviour ... because you shouldn't be able to change sytsem-settings on the client-machine with your code on a webpage ... imagine what someone might do in case that would be possible ... i think you wouldn't like that :) ... and nobody does.

kind regards
Sep 17 '07 #2
Oh, when I said that, I only meant to change the tone that played on my site, not to actually change the settings on the client computer. But you've been a huge help in pointing me to the right direction. Thank you.
Sep 17 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by James Marshall | last post: by
2 posts views Thread by brian | last post: by
reply views Thread by Balakrsihna | last post: by
6 posts views Thread by BrianDH | last post: by
2 posts views Thread by sebastien1101 | last post: by
10 posts views Thread by pamelafluente | last post: by
reply views Thread by NeoPa | last post: by
reply views Thread by YellowAndGreen | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.