make javascript links openable in a new tab
<p>I have links that are present as <code>&lt;div&gt;</code> images with click events getting passed to javascript.</p>

<p>Javascript opens the links by using <code>location.href = link;</code></p>

<p>When I middle click the links they don't open in a new tab though.  How can i make them new tab compatible?</p>
