org.w3c.dom.html.HTMLTableRowElement |
A row in a table. See the TR element definition in HTML 4.0.
See also the Document Object Model (DOM) Level 2 Specification.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Delete a cell from the current row.
| |||||||||||
Horizontal alignment of data within cells of this row.
| |||||||||||
Background color for rows.
| |||||||||||
The collection of cells in this row.
| |||||||||||
Alignment character for cells in a column.
| |||||||||||
Offset of alignment character.
| |||||||||||
The index of this row, relative to the entire table, starting from 0.
| |||||||||||
The index of this row, relative to the current section (
THEAD , TFOOT , or TBODY ),
starting from 0. | |||||||||||
Vertical alignment of data within cells of this row.
| |||||||||||
Insert an empty
TD cell into this row. | |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Delete a cell from the current row.
index | The index of the cell to delete, starting from 0. |
---|
DOMException | INDEX_SIZE_ERR: Raised if the specified index is
greater than or equal to the number of cells or if the index is
negative.
|
---|
Horizontal alignment of data within cells of this row. See the align attribute definition in HTML 4.0.
Background color for rows. See the bgcolor attribute definition in HTML 4.0. This attribute is deprecated in HTML 4.0.
Alignment character for cells in a column. See the char attribute definition in HTML 4.0.
Offset of alignment character. See the charoff attribute definition in HTML 4.0.
The index of this row, relative to the entire table, starting from 0.
This is in document tree order and not display order. The
rowIndex
does not take into account sections (
THEAD
, TFOOT
, or TBODY
)
within the table.
The index of this row, relative to the current section (
THEAD
, TFOOT
, or TBODY
),
starting from 0.
Vertical alignment of data within cells of this row. See the valign attribute definition in HTML 4.0.
Insert an empty TD
cell into this row. If
index
is equal to the number of cells, the new cell is
appended
index | The place to insert the cell, starting from 0. |
---|
DOMException | INDEX_SIZE_ERR: Raised if the specified index is
greater than the number of cells or if the index is negative.
|
---|