detecting popup blockers
1 var win = window.open(...); 2 if(win == null || typeof(win) == "undefined" || (win == null && win.outerWidth == 0) || (win != null && win.outerHeight == 0) || win.test == "undefined") { 3 // popup blocked :( 4 }