JavaScript tr object method: deleteCell()
[this page | pdf | back links]
The deleteCell() method of the JavaScript
DOM object
corresponding to the HTML <tr> element deletes
a cell from a table row.
It has the following
syntax with the following parameters:
object.deleteCell(index)
|
Parameter
|
Required / Optional
|
Description
|
|
index
|
Required (see below)
|
Index position from
where cell is removed (index starts at 0). Using zero deletes the first cell,
using -1 deletes the last cell.
|
Note: the index parameter
is required by some browsers but optional for others.
NAVIGATION LINKS
Contents | Prev | Next | JavaScript DOM (and BOM)