문제

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 ?

도움이 되었습니까?

해결책

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">
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top