Skip to content

Instantly share code, notes, and snippets.

@brunofrank
Created March 13, 2012 01:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save brunofrank/2025969 to your computer and use it in GitHub Desktop.
Save brunofrank/2025969 to your computer and use it in GitHub Desktop.
Popup blocker detector tested on Chrome, Firefox, Safari and IE
var test = window.open(null,"","width=1,height=1");
setTimeout(function(){
if (test && test.innerHeight && test.innerHeight > 0) {
// POPUP BLOCKER DISABLED
test.close();
}
}, 10);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment