How to open a link in a new window with javascript?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1794674/basic-javascript-question-how-to-open-a-new-window">Basic Javascript question: How to open a new window?</a>  </p>
</blockquote>



<p>I have such a link wrapped in a div:</p>

<pre><code>&lt;div class="sponsor" target="_blank" onclick="location.href='http://www.sponsor.com"&gt;&lt;/div&gt;
</code></pre>

<p>Actually what I need is this link to open in a new window. At this point it opens in the same page. Thanks!</p>
