DHTML Methods
Inserts a new empty TD cell in a table row ( TR ).
oTD = TR.insertCell ( [ iIndex ] )
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. |
Returns the newly created TD object if successful, or null otherwise.
This method adds the cell to the cells collection.
The following example adds a cell to the end of the first row in the table.
myNewCell=document.all.myTable.rows [ 0 ] .insertCell ( )
TR
deleteCell, insertRow, deleteRow