Delay href click, but not with SetTimeout
<p>I am trying to track the outbound links via google analytics, and <a href="http://support.google.com/googleanalytics/bin/answer.py?hl=en&amp;answer=55527" rel="nofollow">Google suggests using this</a>: </p>

<pre><code>&lt;script type="text/javascript"&gt;
  function recordOutboundLink(link, category, action) {
    _gat._getTrackerByName()._trackEvent(category, action);
    setTimeout('document.location = "' + link.href + '"', 100);
  }
&lt;/script&gt;
</code></pre>

<p>Which is fine, except, my outbound links are to be opened in a new tab, and I am (naturally) using a <code>target="_blank"</code> for that.. </p>

<p>but, the <code>setTimeout</code> method takes that away, and opens the link in the same page.. </p>

<p>I've tried using <code>window.open()</code> but I am worried that it will be blocked by browsers..</p>

<p>So, is there anyway that I can execute this js function, and delay the click for just a little while? (100ms as google suggests)?</p>

<p>Thanks.</p>

<p><hr>
I've looked at <a href="http://stackoverflow.com/questions/3032182">other</a> <a href="http://stackoverflow.com/questions/351268">questions</a> like this on SO, but they don't deal with opening in new tab/window.</p>
