login/register

Snip!t from collection of Alan Dix

see all channels for Alan Dix

Snip
summary

If you site needs pop-ups to work properly, this little ...
var popWin = window.open("","ptest","width=1,height=1,le ...
if (popWin) {
  popWin.blur();
... }

Code Examples -> Simple js test for a pop-up blocker
http://www.weberdev.com/get_example-4189.html

Categories

/Channels/techie/JavaScript

[ go to category ]

For Snip

loading snip actions ...

For Page

loading url actions ...

Full snip

If you site needs pop-ups to work properly, this little js function will test for it and alert the user to allow popups from your site.
var popWin = window.open("","ptest","width=1,height=1,left=5000,top=5000",true);
if (popWin) {
  popWin.blur();
  popWin.close();
} else {
  alert("Popup Blocker ON");
}