summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/dynamic/007.html
blob: b604284800ae441cf1ca1c7dfbe95d6a9b982734 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<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>