title: Get clicked column index from row click
body: <p>I have a row click event. Recently had to add a checkbox to each row. How can I identify the clicked cell on row click event?</p>
  
  <p>Or prevent row click when clicked on the checkbox.</p>
  
  <p>Attempts: this.parentNode.cellIndex is undefined on the row click event.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function pop(row){
  alert(row.cells[1].innerText);
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;table style="width:100%"&gt;
    &lt;tr&gt;
      &lt;th&gt;Select&lt;/th&gt;
      &lt;th&gt;Site&lt;/th&gt; 
    &lt;/tr&gt;
    &lt;tr onclick="pop(this);"&gt;
      &lt;td&gt;&lt;input type="checkbox" id="123456" /&gt;&lt;/td&gt;
      &lt;td&gt;Lonodn&lt;/td&gt; 
    &lt;/tr&gt;
  &lt;/table&gt;</code></pre>
  </div>
  </div>
  </p>