HTMLTableRowElement Interface
The HTMLTableRowElement Interface represents a row in a table.
IDL Definition
Interface HTMLTableRowElement : HTMLElement {
readonly attribute long rowIndex;
readonly attribute long sectionRowIndex;
readonly attribute HTMLCollection cells;
attribute DOMString align;
attribute DOMString bgColor;
attribute DOMString ch;
attribute DOMString chOff;
attribute DOMString vAlign;
HTMLElement insertCell(in long index);
void deleteCell(in long index);
};
Semantic Requirements
- The rowIndex attribute specifies the index of this row relative to the entire table.
- The sectionRowIndex attribute specifies the index of this row relative to the current section.
- The cells attribute is the collection of cells in this row.
- The align attribute specifies the horizontal alignment of data within cells of this row.
- The bgColor attribute specifies the background color for rows.
- The ch attribute specifies the alignment character for cells in a column.
- The chOff attribute specifies the offset of alignment character.
- The vAlign attribute specifies the vertical alignment of data within cells of this row.
Methods
- The insertCell(index) method inserts an empty TD cell into this row.
- The deleteCell(index) method deletes a cell from the currrent row.
If you have comments or suggestions, email me at mbrady@nist.gov