blob: 09f63dcff65fbc715282d26208bac7b03e0ca2a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
<HEAD>
<SCRIPT src=tableDom.js>
</SCRIPT>
<SCRIPT>
function doIt() {
var tbody = document.getElementsByTagName("TBODY")[0];
var row = document.createElement("TR", null);
appendCell(row, 1, 1);
appendCell(row, 1, 1);
var refRow = document.getElementsByTagName("TR")[0];
tbody.insertBefore(row, refRow);
}
</SCRIPT>
</HEAD>
<BODY onload="doIt()">
<table bgcolor=orange border>
<tr>
<td>c11</td><td>c12</td>
</tr>
</table>
</BODY></HTML>
|