2 <SCRIPT src=tableDom.js
>
7 var tbody = document.getElementsByTagName(
"TBODY")[
0];
8 var row = document.createElement(
"TR", null);
10 appendCell(row,
1,
1);
11 tbody.appendChild(row);
12 row = document.createElement(
"TR", null);
13 appendCell(row,
1,
1);
14 appendCell(row,
1,
1);
15 tbody.appendChild(row);
19 <BODY onload=
"doIt()">
20 The
2 tables should look the same
21 <table bgcolor=orange border
>
23 <td>c11
</td><td>c12
</td>
27 <table bgcolor=orange border
>
29 <td>c11
</td><td>c12
</td>
32 <td>X1
</td><td>X2
</td>
35 <td>X3
</td><td>X4
</td>