deleteCol3.html 491 B

12345678910111213141516171819202122232425262728293031
  1. <HEAD>
  2. <SCRIPT src=tableDom.js>
  3. </SCRIPT>
  4. <SCRIPT>
  5. function doIt() {
  6. var col = document.getElementsByTagName("COL")[2];
  7. col.parentNode.removeChild(col);
  8. // HTML5 implies a colgroup around the cols,
  9. // so this test case should really be XHTML
  10. // in order to test bare col
  11. }
  12. </SCRIPT>
  13. </HEAD>
  14. <BODY onload="doIt()">
  15. <table bgcolor=orange border>
  16. <col width=100>
  17. <col width=200>
  18. <col width=300>
  19. <tr>
  20. <td>100</td><td>200</td><td>auto</td>
  21. </tr>
  22. </table>
  23. </BODY></HTML>