Javascript to detect popup blocker

This simple javascript can be used to detect whether popup blocker is enabled on the browser.

<script type=”text/JavaScript” language=”JavaScript”>
var pop=”,”,’width=1,height=1,left=0,top=0,scrollbars=no’);
var popUpsBlocked = false
var popUpsBlocked = true

<script type=”text/JavaScript” language=”JavaScript”>
alert(‘Your browser’s popup blocker is enabled.\nPlease turn it off.’);


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s