Name

HTMLTableRowElement.deleteCell( ) — delete a cell in a table row

Availability

DOM Level 1 HTML

Synopsis

void deleteCell(long index) 
    throws DOMException;

Arguments

index

The position in the row of the cell to delete.

Throws

This method throws a DOMException with a code of INDEX_SIZE_ERR if index is less than zero or is greater than or equal to the number of cells in the row.

Description

This method deletes the cell at the specified position in the table row.

Get JavaScript: The Definitive Guide, Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.