Popup Blocker Detection | JavaScriptSource

Popup Blocker Detection

Casey Ryan Apr 7, 2006
Use this snippet to detect if the client browser is using a popup blocker. If a one is detected, the script can then perform a different action. The sample uses an alert box to inform the user whether a popup blocker is present or not.

The JavaScript Source: Snippets : Popup Blocker Detection

Simply click inside the window below, use your cursor to highlight the script, and copy [Control]+C the script into a new file in your text editor (such as Note Pad) and save [Control+S]. The script is yours!!!

Did you use this script?  Do you like this site?  Please link to us!

Leave a Response

1 comment)

About your script above:I'm told to paste it in to a new file in Note Pad and having done so I don't know what to do after that. I presume I have to do something with the script, don't I?

Johnny Mansson Dec 16, 2012