Click to return to the DHTML, HTML     
deleteCaption Method     deleteRow Method     DHTML Methods    
Web Workshop  |  DHTML, HTML & CSS

deleteCell Method


Deletes the specified cell (TD) in the table row, and removes the cell from the cells collection.

Syntax

TR.deleteCell([iIndex])

Parameters

iIndexOptional. Integer that specifies the cell to be deleted from the table row. If no value is provided, the last cell in the cells collection is deleted.

Return Value

No return value.

Example

This example uses the deleteCell method to delete the last cell in the first row of the table.

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

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:

TR

See Also

deleteRow, insertCell



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.