title: Counting the number of hyperlink in a table
body: <p>Hello I have a dynamic web table and I want to count the hyperlinks in the table using Javascript.</p>
  
  <p>Here is the HTML:</p>
  
  <pre><code>      &lt;tbody&gt;
         &lt;tr&gt;
          &lt;td style="..."
           &lt;a id =" " href="test1"&gt;123456&lt;/a&gt;
          &lt;/td&gt;
          &lt;td style="..."
           &lt;a id =" " href="test2"&gt;123477&lt;/a&gt;
          &lt;/td&gt;
          &lt;&lt;td style="..."
           &lt;a id =" " href="test3"&gt;1234557&lt;/a&gt;
          &lt;/td&gt;
  </code></pre>
  
  <p>I want to get the count of the href from this HTML</p>
  
  <p>This is what i have tried so far:</p>
  
  <pre><code>    Function Rowcount(){
          var totalRowCount=0;
  //identifying the table
          var table=document.getElementById("tableID");
  //identifying the row
          var rows=table.getElementsByTagName("tr");
          var tdata=null;
          for( var i=0; i&lt;rows.length; i++){
  
             tdata=rows[i].getElementsByTagName("td")
  
          }
      }
  </code></pre>
  
  <p>I am not understanding how should I refer to "href"</p>