insertCellinsertCell*
*Contents  *Index  *Topic Contents
*Previous Topic: insertAdjacentText
*Next Topic: insertRow

insertCell

Description

Creates a new cell in the table row and adds the cell to the cells collection.

Syntax

object.insertCell(index)

Return Value

Returns the TD element object. If the method fails, it returns null. Index is optional. Default value is "-1" which appends the TD to the end of the cells collection.

Remarks

The following example adds a cell to the end of the TR,

myNewCell = document.all.myTable.rows[0].insertCell() 

Applies To

TR

See Also

deleteCell, InsertRow


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.