passing function as parameter and popup blocker
<p>I got tree functions:</p>

<pre><code>var a = function (f)
{
    // some code
    window.open("")
    f();
};

var b = function (f)
{
   // some code
   f();
}

var c = function()
{
}
</code></pre>

<p>And I'm calling the functions using a chain with anonymous function:</p>

<pre><code>a(function () {
    b(function () {
        c();
    });
});
</code></pre>

<p>If I call the a function directly, the popup blocker does not block my popup because the window.open is triggered by a user click. But using the chain, the popup blocker blocks my popup.</p>

<p>How can I avoid it?</p>

<p>ps: It is the facebook popup, I'm not trying to do something that I'm not supposed to do.</p>
