2 <SCRIPT src=tableDom.js
>
7 var table = document.getElementsByTagName(
"TABLE")[
0];
8 var rg = document.createElement(
"TBODY", null);
9 var row = document.createElement(
"TR");
10 appendCell(row,
1,
1);
11 appendCell(row,
1,
1);
13 table.appendChild(rg);
17 <BODY onload=
"doIt()">
18 The
2 tables should look the same
19 <table bgcolor=orange border
>
22 <td>c11
</td><td>c12
</td>
27 <table bgcolor=orange border
>
30 <td>c11
</td><td>c12
</td>
35 <td>X1
</td><td>X2
</td>