2 <SCRIPT src=tableDom.js
>
7 var table = document.getElementsByTagName(
"TABLE")[
0];
8 var cg = document.createElement(
"COLGROUP", null);
10 var col = document.createElement(
"COL", null);
12 col = document.createElement(
"COL", null);
14 table.appendChild(cg);
18 <BODY onload=
"doIt()">
19 The
2 tables should look the same
20 <table bgcolor=orange border
>
25 <td>col-
100</td><td>cg-
200</td><td>cg-
200</td>
29 <table bgcolor=orange border
>
38 <td>col-
100</td><td>cg-
200</td><td>cg-
200</td>