title: <tr> onClick not working
body: <p>I want to turn my table rows into links using JS. I have it looking like this:</p>
  
  <pre><code>&lt;tr onClick='javascript:window.location.href='url';'&gt;
  </code></pre>
  
  <p>However, when I try to click, it doesn't go the page as I want. In fact, clicking seems to have no action.</p>
  
  <p>Any help?</p>
  
  <p><b>Edit:</b></p>
  
  <p>As for the quotes, I forgot to mention that I'm echoing this with PHP. Here's my updated code:</p>
  
  <pre><code>echo "&lt;tr onClick='window.location.href='url?id=" . $var . "';'&gt;&lt;/tr&gt;";
  </code></pre>
  
  <p>Should I be doing some sort of escaping like <code>/"</code> in this case?</p>