you are here: codestackercodes [RSS]detecting popup blockers

detecting popup blockers

var win = window.open(...);
if(win == null || typeof(win) == "undefined" || (win == null && win.outerWidth == 0) || (win != null && win.outerHeight == 0) || win.test == "undefined") {
// popup blocked :(

}

Comments