title: Table Row onclick - change page, or open new tab
body: <p>I have a table with rows, that when clicked, take the user to a page with more detailed information about the item that row was describing. Unfortunately, it always changes the current page, and our users would like to be able to middle-mouse/control click the rows in order to open a new tab if they want to. This choice is available with normal links, but not with my onclick it seems. An example is shown below:</p>
  
  <pre><code>&lt;html&gt;
      &lt;body&gt;
          &lt;table border='1'&gt;
          &lt;tr onclick='window.open("http://www.google.com")'&gt;
              &lt;td&gt;Open Another Window&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr onclick='location.href="http://www.google.com"'&gt;
              &lt;td&gt;Change Current Page&lt;/td&gt;
          &lt;/tr&gt;
          &lt;/table&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>What is the best way to simulate a normal link with an onclick event so the behaviour will be the same across different os/browsers, which I believe have different bindings for what triggers opening a link in a new tab.</p>