blob: b604284800ae441cf1ca1c7dfbe95d6a9b982734 [file] [log] [blame]
<html>
<head>
<title>Dynamic Table Row Cell Array Test</title>
<script>
function color(obj) {
for (var i=0; i < obj.cells.length; i++) {
obj.cells[i].style.backgroundColor = '#FFFFCC';
}
}
</script>
</head>
<body>
<table border=0>
<tr id="t"><td>Cell One<td>Cell Two<td>Cell Three</table>
</table>
<script>
color(document.getElementById('t'))
</script>