window.Open Open popup Instead of new window
<p>I have a ajax function in jQuery and i want in compelet function open a url in new window or tab.</p>

<pre><code>&lt;a href="#" onclick="Add('1','http://www.google.com');return false;"&gt;Link&lt;/a&gt;
</code></pre>

<p>And :</p>

<pre><code>function Add(ID, url)
{
    var data = "{'ID' : '" + ID + "'}";
    $.ajax({
        type: "POST",
        url: "Function.ashx/Add",
        data: data,
        contentType: "application/json; charset=utf-8",
        dataType: "json",
        complete: function ()
        {
           window.open(url);
        }
    });
}
</code></pre>

<p>windows.open fucntion work as popup but i want to open link in a new window. <a href="http://www.w3schools.com/js/tryit.asp?filename=tryjs_openwindow" rel="nofollow">w3School Example</a> work prefect.
but my window detect as popup and blocked.<br>
what's wrong with my code</p>
