tr Object
The deleteCell() method deletes a cell in the current table row.
| Value | Description |
|---|---|
| index | An integer (starts at 0) that specifies the position of the cell to delete in the current row.
The value of -1 can also be used; which result in that the last cell will be deleted. If this parameter is omitted, deleteCell() removes the last cell in IE and the first cell in Chrome and Safari. This parameter is required in Firefox and Opera, but optional in Internet Explorer, Chrome and Safari. |
![]()
The deleteCell() method is supported in all major browsers.
Delete first cell from the first table row:
tr Object
Your message has been sent to W3Schools.