title: href links not working with onclick events in Safari
body: <pre><code>&lt;script type="text/javascript"&gt;
  function ref() {
      location.href = 'http://www.google.com';
  }
  &lt;/script&gt;
  
  &lt;a target="_blank" href="/somepage.html" onclick="javascript:ref()"&gt;CLICK ME&lt;/a&gt;
  </code></pre>
  
  <p>In Chrome, FF and IE, clicking the link will open Google in the current window and open somepage.html in a new tab/window</p>
  
  <p>But in Safari it will just open Google in the current window and nothing else.</p>
  
  <p>How can I make Safari replicate the other browsers?</p>