javascript - How to add sound on alert pop up? -


i developing system in php-mysql , using sweetalert.min.js alerts.. along need add notification tone alert pop-ups. below code

if(((sms_alert == 'null') && (email_alert == 'null')))                     {                        swal("you have " + obj[i].e_name + " event @ moment");                     } 

please me out whether done javascript, jquery or other thing.. n how achieved.

try using jquery

https://github.com/admsev/jquery-play-sound

$.playsound('http://example.org/sound.mp3');


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -