469,327 Members | 1,261 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,327 developers. It's quick & easy.

Replace alert system sound with custom sound

23
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 1873
gits
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
Z1P2
23
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
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.