title: Why does this line of code not open a new tab?
body: <p>I have many lines of code that open a new web page in a new tab using  but this generated line of code overwrites the current page. </p>
  
  <pre><code>&lt;button 
      onclick='location.href="http://www.jaguar.com.au/"' 
      target='_blank'&gt;Jaguar Web Site
  &lt;/button&gt;
  </code></pre>
  
  <p>As I mentioned it is generated and there may be many of them. While trying to find an answer I noticed there is a way to do it with CSS but do not want to try it due to the unknown quantity of buttons.</p>
  
  <p>I have tried it with the / removed from au/ moved it to after the style and removed style with no success.</p>