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
Post a Comment