asp.net.ph

Skip Navigation Links

deleteCell Method

DHTML Methods


Deletes a specified cell ( TD ) in a table row.

Syntax

TR.deleteCell (  [ iIndex ] ) 
Parameters

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.

Return Value

No return value.

Remarks

This method removes the cell from the cells collection.

Example

The following example deletes the last cell in the first row of the table.

document.all.myTable.rows [ 0 ] .deleteCell ( ) 
Applies To

TR

See Also

deleteRow, insertCell, insertRow



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note