insertCell method

HTMLTableCellElement insertCell([
  1. int index
])

The insertCell() method of the HTMLTableRowElement interface inserts a new cell (td) into a table row (tr) and returns a reference to the cell.

Note: insertCell() inserts the cell directly into the row. The cell does not need to be appended separately with Node.appendChild as would be the case if Document.createElement had been used to create the new <td> element.

You can not use insertCell() to create a new <th> element though.

Implementation

external HTMLTableCellElement insertCell([int index]);