I'm trying to change the TR className with javascript, why it doesn't seem to work (note : must work also for IE8)
<html>
<head>
<style>
tr.test {background-color:#000000;margin:0;border:0;padding:0;}
</style>
<script>
_table = document.getElementsByTagName("table")[0];
_tbody = _table.getElementsByTagName("tbody")[0];
_tr = _tbody.getElementsByTagName("tr")[0];
_tr.className="test";
</script>
</head>
<table>
<tbody>
<tr>
<td></td>
</tr>
</tbody>
</table>
</html>
` tag, or in some kind of `window load` event and it will work
– The Process Mar 05 '16 at 22:09