title: Best Practice for JS - window.open() in href or in onclick?
body: <p>Just a question about optimization, between :</p>
  
  <pre><code>&lt;a href="#" onClick="javascript:window.open('myUrl.com');"&gt;link-1&lt;/a&gt;
  </code></pre>
  
  <p>and :</p>
  
  <pre><code>&lt;a href="javascript:window.open('myUrlBis.com');"&gt;link-2&lt;/a&gt;
  </code></pre>
  
  <p>Is one better than the other ? Or more compatible ? Thanks.</p>