2 <SCRIPT src=tableDom.js
>
7 var table = document.getElementsByTagName(
"TABLE")[
0];
8 var colgroup = document.getElementsByTagName(
"COLGROUP")[
0];
9 table.removeChild(colgroup);
13 <BODY onload=
"doIt()">
14 The
2 tables should look the same
15 <table bgcolor=orange border
>
16 <colgroup span=
2 width=
100></colgroup>
17 <colgroup span=
2 width=
200></colgroup>
19 <td>200</td><td>200</td><td>auto
</td><td>auto
</td>
23 <table bgcolor=orange border
>
24 <colgroup span=
2 width=
200></colgroup>
26 <td>200</td><td>200</td><td>auto
</td><td>auto
</td>