This is something I wrote just this morning to monitor any pop-ups being blocked on our site. It's not revolutionary, but it may save you time if you need it. Or maybe if you're just curious to see if this is an issue on your site...

function testPop () {
if (newWin && newWin.top) {
//**** add tracking code here if you want to track pop-up success *****
} else {
//**** add tracking code here if you want to track pop-up blocked *****
ntptEventTag("ev=pop-up blocked");
}
}

function newWindow() {
newWin=new Object();
newWin = window.open(...your values here...);
setTimeout(testPop,1700);
newWin.focus();
}

The timeout of 1.7 seconds might seem a little long, but that's what it took to capture the IE pop-up blocker. I'd gladly accept any optimization or contributions to this.

Views: 17

Comment

You need to be a member of NetInsight User Group to add comments!

Join NetInsight User Group

© 2017   Created by Wendy Ertter.   Powered by

Badges  |  Report an Issue  |  Terms of Service