deleteCell Method

MS Office DHTML, HTML & CSS

 
Click to return to the DHTML, HTML & CSS home page    
deleteCaption Method     deleteRow Method     DHTML Methods    

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:
Version data is listed when the mouse hovers over a link, or the link has focus.

TR

See Also

deleteRow, insertCell


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? write us!Internet Link

© 1999 microsoft corporation. all rights reserved. terms of useInternet Link.