I’m displaying pop up window using the below code:
var left = (screen.width/2)-(400/2);
var top = (screen.height/2)-(400/2);
targetWin2 = window.open ('', 'popup', 'toolbar=no,location=no,directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=400, height=10, top='+top+', left='+left);
It works; but how to play pop up sound while displaying this window?
You can do it with something like this:
popurl= The page you want to popupalertMessage= What you want the alert to saySoundURLHere= The Directory to the soundthere is also the possibility of using vbscript to pop up different types of alert boxes but i dont know if you can then interact with javascript.