Question

Added sample to show message notification.Whenever we show it we have to add beep sound. Almost it imitates the behavior like desktop alert.

Can anyone have solution ?

Was it helpful?

Solution

this should help

<script>
    function PlaySound(soundObj) {
        var sound = document.getElementById(soundObj);
        sound.Play();
    }
</script>

<embed src="success.wav" autostart="false" width="0" height="0" id="sound1" enablejavascript="true">
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top