DHTML Methods
Deletes a specified cell ( TD ) in a table row.
TR.deleteCell ( [ iIndex ] )
iIndex |
Optional. The index of the cell to delete from the table row, starting from 0. If no value is provided, the last cell in the cells collection will be deleted. |
No return value.
This method removes the cell from the cells collection.
The following example deletes the last cell in the first row of the table.
document.all.myTable.rows [ 0 ] .deleteCell ( )
TR
deleteRow, insertCell, insertRow