title: Link won't open in new window even with the correct code!
body: <p>I'm having a small but annoying problem with trying to open a link in a new window. I've built a site and I've got Google Analytics tracking installed. I've tracked click throughs to external sites as events and have put in the correct and it all tracks properly. For each of these links I've put in the <code>target="_blank"</code> but for some reason the link doesn't open in a new window! Is there something that I am doing wrong? Code below:</p>
  
  <p><code>&lt;a onclick="recordOutboundLink(this, 'Outbound Links', 'Link');return false;" href="http://www.mylink.com" target="_blank"&gt;Myink&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;</code> </p>
  
  <p>Is it something to do with the order it's in? I just can't seem to get it to work!</p>
  
  <p>Thanks in advance.</p>
  
  <p>As requested here is the code for recording the links:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  function recordOutboundLink(link, category, action) {
    try {
      var pageTracker=_gat._getTracker("UA-XXXXXX-XX");
      pageTracker._trackEvent(category, action);
      setTimeout('document.location = "' + link.href + '"', 100)
    }catch(err){}
  }
  </code></pre>
  
  <p></p>