table.cell[].innerText works in IE but not in mozilla
<p>Javascript</p>

<pre><code>function test(){
var tableToSort = document.getElementById('tblid');
    for (i=1; i &lt; tableToSort.rows.length; i++)
          {
            alert("result ============&gt; "+tableToSort.cells(iCurCell).innerText);
            iCurCell = iCurCell + tableToSort.cols;
          }
}
</code></pre>

<p>Upper function not works in IE but not in mozilla so i have change it with</p>

<pre><code>function test(){
    var tableToSort = document.getElementById('tblid');
        for (i=1; i &lt; tableToSort.rows.length; i++)
              {
        alert("result ============&gt; "+tableToSort.rows[iCurCell1].cells[2].textContent);
                iCurCell = iCurCell + tableToSort.cols;
              }
    } 
</code></pre>

<p>In mozilla for first record of loop it works fine but for other it prints <code>undefined</code>.
While in IE all records print correctly.</p>
