jQuery Attribute Usage for Target
<p>Can anyone see why the following code is not causing my url top open up in a new window, i.e:</p>

<pre><code>        $(location).attr({
            href: toLoad,
            target: "_blank"
        });
</code></pre>

<p>where toLoad is my url.</p>

<p>Looking at the view source, all seems fine and basically looks like:</p>

<pre><code>&lt;a target="_blank" title="" href="http://......etc"&gt;ccc&lt;/a&gt;
</code></pre>

<p>Any ideas what I could be doing wrong?</p>

<p>Thanks.</p>
