When the beasts of hell (marketing) compel you to finally build a popunder. And let's say this popunder must pop up 'x' number of times (where x > 1). If you use the same code each time you could run into a problem where IE stops popping up windows after 1. An example of this code is found below:
function popup {
window.open('ad.html', 'ad_window', 'height=100,width=100,top=100,left=100,resizable=yes,status=no');
}
To fix this problem, you must change your window name each time. I generally just use the session variable that tracks how many times I've popped the popup.
function popup {
window.open('ad.html', 'ad_window_', 'height=100,width=100,top=100,left=100,resizable=yes,status=no');
}
Not that I recommend you do this.
|