Files
Mozilla/mozilla/layout/html/tests/table/dom/deleteCol2.html
(no author) d368a405db This commit was manufactured by cvs2svn to create branch
'MOZILLA_1_8_0_BRANCH'.

git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_0_BRANCH@185757 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-07 05:54:01 +00:00

39 lines
581 B
HTML

<HEAD>
<SCRIPT src=tableDom.js>
</SCRIPT>
<SCRIPT>
function doIt() {
var table = document.getElementsByTagName("TABLE")[0];
var col = document.getElementsByTagName("COL")[1];
table.removeChild(col);
}
</SCRIPT>
</HEAD>
<BODY onload="doIt()">
The 2 tables should look the same
<table bgcolor=orange border>
<col width=100>
<col width=200>
<col width=300>
<tr>
<td>100</td><td>300</td><td>auto</td>
</tr>
</table>
<BR>
<table bgcolor=orange border>
<col width=100>
<col width=300>
<tr>
<td>100</td><td>300</td><td>auto</td>
</tr>
</table>
</BODY></HTML>