title: Getting value from table cell in JavaScript...not jQuery
body: <p>I can't believe how long this has taken me but I can't seem to figure out how to extract a cell value from an HTML table as I iterate through the table with JavaScript.  I am using the following to iterate:</p>
  
  <pre><code>  var refTab=document.getElementById("ddReferences")
    var  ttl;
    // Loop through all rows and columns of the table and popup alert with the value
    // /content of each cell.
    for ( var i = 0; row = refTab.rows[i]; i++ ) {
       row = refTab.rows[i];
       for ( var j = 0; col = row.cells[j]; j++ ) {
          alert(col.firstChild.nodeValue);
       }
    }
  </code></pre>
  
  <p>What is the correct call I should be putting in to the alert() call to display the contents of each cell of my HTML table?  This should be in JS...can't use jQuery.</p>