title: How to focus on row in HTML Table?
body: <p>Is it possible to focus on a specific HTML table row/cell with the help of Javascript?  For instance, if this row is after the browser fold then the browser would scroll down to the row upon focus.</p>
  
  <p>I have some JS code that searches an HTML table for a user's string input. I would then like for this code to focus on this word if it is found (Safari/Chrome browsers).</p>
  
  <pre><code>var targetTable = document.getElementById("accountTable");
  
  for (var rowIndex = 1 + searchStart; rowIndex &lt; targetTable.rows.length; rowIndex++)
  {
      var rowData = '';
      rowData = targetTable.rows.item(rowIndex).cells.item(0).textContent;
      if (rowData.indexOf(str) != -1)
      {
                  //focus on the row?
      }
  }
  </code></pre>