Java Script Undefined Error in mozilla?
<p>I use the following Javascript function.It will not work.It will give the <strong>Undefined Error</strong> in the following line, <code>c= row.cells[0].innerText.strip();</code></p>

<pre><code>function a()
{

    var table = getServerObject("b");
    var row,c;
    for (var i = 2; i &lt; table.rows.length - 1; i++)
    {
        row = table.rows[i]; 
        if(row.cells.length==1)continue;
        c= row.cells[0].innerText.strip(); 
        if(c==0)
       {
        //Something
       }

    }
}
</code></pre>
