Delete a Cell : Cell « Table « JavaScript DHTML
- JavaScript DHTML
- Table
- Cell
Delete a Cell
<html>
<body>
<script language="JavaScript">
function function1() {
document.all.myTr.deleteCell(2);
}
</script>
<table>
<tr id="myTr">
<td>Cell 1</td>
<td>Cell 2</td>
<td>Cell 3</td>
<td>Cell 4</td>
</tr>
</table>
<input type="button" value="Remove Cell 3" onclick="function1();">
</body>
</html>
Related examples in the same category