asp.net.ph

Skip Navigation Links

insertCell Method

DHTML Methods


Inserts a new empty TD cell in a table row ( TR ).

Syntax

oTD = TR.insertCell ( [ iIndex ] ) 
Parameters

iIndex Optional. The place to insert the cell in the TR, starting from 0. The default value is -1, which appends the new cell to the end of the cells collection.

Return Value

Returns the newly created TD object if successful, or null otherwise.

Remarks

This method adds the cell to the cells collection.

Example

The following example adds a cell to the end of the first row in the table.

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

TR

See Also

deleteCell, insertRow, deleteRow



© 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