ZVON > References > DOM2 Reference

insertCell (method )

Owning interface and usage:  
HTMLTableRowElement.insertCell(index)

Member of these other interfaces:  
none

Description:  
Insert an empty TD cell into this row. If index is -1 or equal to the number of cells, the new cell is appended.

Parameters:  
long index  -  The place to insert the cell, starting from 0.

Returns:  
HTMLElement -  The newly created cell.

Exceptions:  
DOMException INDEX_SIZE_ERR
Raised if the specified index is greater than the number of cells or if the index is a negative number other than -1.