Replace alert system sound with custom sound

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Z1P2
    New Member
    • Sep 2007
    • 23

    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?

    Code:
    <script type="text/javascript">
    var monitor = setTimeout("alert('The monitor is working');",0);
    </script>
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5388

    #2
    hi ...

    unfortunatly or better fortunatly i think you cannot override the system-sound ... but you may open a custom alert-message with window.open(par ams); 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

    Comment

    • Z1P2
      New Member
      • Sep 2007
      • 23

      #3
      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.

      Comment

      Working...