How to get browser popup blocker status in javascript?
<p>I used the code for getting the browsers popup blocker status.</p>

<p>I just want the status of popup blocker</p>

<pre><code>&lt;script&gt;
     function IsPopupsAllowed()
    {
        var w = window.open('blank.htm','popup',"width=1,height=1,toolbar=no, top=3000px,left=3000,menubar=no,scrollbars=no,resizable=0");
        var mybrsAgent=navigator.userAgent.toLowerCase();
        if (w)
        {     
        if ((mybrsAgent.search(/chrome\//) !=-1) )
                    {                                
                    w.onload = function(){
                    setTimeout(function(){
                            if (w.screenX === 0) {
                                returnCromeValue(false);
                            } else {
                                w.close();
                                returnCromeValue(true);
                            }
                        }, 0);
                    };
                    }
              }   
         }
var allowed = "Blocked";
function returnCromeValue(arg)
{
if(arg==true)
{
      allowed = "Allowed";
      }
else
{
      allowed = "Blocked";
      }
      alert(allowed);   
return allowed;
}
IsPopupsAllowed();
&lt;/script&gt;
</code></pre>

<p>but it's working only in chrome..</p>

<p>please give me solution to get popup blocker information</p>
