Add styles to each row of the table. Pay attention to the second parameter of for. When the array subscript is out of bounds, row=row[i] returns false, and the loop ends.
var rows = document.getElementsByTagName('tr');
for( var i = 0, row; row = rows[i]; i ) {
row.className = 'newclass' ;
}
Test code:
nbsp;html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">