title: Open link new window (not tab) with JavaScript without typing the URL twice?
body: <p>It's possible make a link open in a new window (not tab) with this:</p>
  
  <pre><code>&lt;a href="print.html"  onclick="window.open('print.html', 'newwindow', 'width=300, height=250'); return false;"&gt; Print&lt;/a&gt;
  </code></pre>
  
  <p>Is it possible to modify this slightly so that the JavaScript looks at the href of the link so you don't have to write it out twice in the code? </p>