Global Index
HTML5 JS API Index > DOM Tutorials & Specs

HTMLTableRowElement

Extends HTMLElement.

The tr element represents a row of cells in a table.

Properties
HTMLCollection
cells
The cells attribute must return an HTMLCollection rooted at the tr element, whose filter matches only td and th elements that are children of the tr element.
long
rowIndex
The rowIndex attribute must, if the element has a parent table element, or a parent tbody, thead, or tfoot element and a grandparent table element, return the index of the tr element in that table element's rows collection. If there is no such table element, then the attribute must return −1.
long
sectionRowIndex
The sectionRowIndex attribute must, if the element has a parent table, tbody, thead, or tfoot element, return the index of the tr element in the parent element's rows collection (for tables, that's the HTMLTableElement.rows collection; for table sections, that's the HTMLTableRowElement.rows collection).
Operations
void
deleteCell(long index)
The deleteCell(index) method must remove the indexth element in the cells collection from its parent. If index is less than zero or greater than or equal to the number of elements in the cells collection, the method must instead throw an IndexSizeError exception.
HTMLElementinsertCell(optional long index)