title: href and tr click avoid overlap
body: <p>I have a table rows which uses javascript to open certain menus when clicked based on selected row. I also have an <code>&lt;a href&gt;</code> tag used to open the link or redirect somewhere else. </p>
  
  <p>The problem is, when I clicked the <code>&lt;a href&gt;</code> link, the table row is also executed which opens the menus. </p>
  
  <p>its PHP/Javascript language.</p>
  
  <p>This is the script for table tr:</p>
  
  <pre><code>echo "&lt;tr onclick=\"enableDialogs(1)\";&gt;";
  </code></pre>
  
  <p>For the <code>&lt;a&gt;</code> link in the same row:</p>
  
  <pre><code>echo "&lt;td&gt;&lt;a href='?folder={$filedir}'&gt;{$list}&lt;/a&gt;&lt;/td&gt;";
  </code></pre>
  
  <p>Question is, how do i avoid overlap of both on click function?</p>