title: onClick="window.location -- trying to change to open link in new tab
body: <p>Just trying to make this current code open the link in a <strong>new tab</strong>. Tried fixes found on this site for similar problems but haven't been able to get it working yet... </p>
  
  <p>Current working code is:</p>
  
  <pre><code>&lt;div onClick="window.location='https://URL';" class="element _element element-4"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>From researching, I've heard I should change it to onClick=window.open so I've changed this now to:</p>
  
  <pre><code>&lt;div onClick=window.open(https://URL, Name) class="element _element element-4"&gt;&lt;/div&gt;
  </code></pre>
  
  <p><strong>Problem is</strong>, when I do change the code to window.open (as per above) clicking the link doesn't do anything at all now, let alone open in a new tab.</p>
  
  <p>Is it something to do with /div? Do I need to alter the CSS or JS? Any help greatly appreciated! :)</p>