I use the following Javascript function.It will not work.It will give the Undefined Error in the following line, c= row.cells[0].innerText.strip();
function a()
{
var table = getServerObject("b");
var row,c;
for (var i = 2; i < 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
}
}
}
“continue” is the problem. see http://www.w3schools.com/js/js_break.asp
The code should be like this