My code visually works fine in IE, but it may be hanging up in Firefox. I checked the js console, and I am not getting an error. What my code is doing is looping through table rows, and finding a nested childnode with a name of "bottom_img_lnav". Once it finds that nested childnode it then starts to delete the rows after, and stops when there are no more rows to delete. Is there a better way to do this that could be compatible with both IE and FF?
_
Code:
var hitBottomIMG = false;
for(var i = 0; i<ta1.rows.length; i++) {
if(ta1.rows[i].childNodes[0].childNodes[0] != null
&& ta1.rows[i].childNodes[0].childNodes[0].name == "bottom_img_lnav") {
hitBottomIMG = true;
} else if(hitBottomIMG) {
ta1.deleteRow(i);
}
}