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

  1. The rowIndex attribute specifies the index of this row relative to the entire table.
  2. The sectionRowIndex attribute specifies the index of this row relative to the current section.
  3. The cells attribute is the collection of cells in this row.
  4. The align attribute specifies the horizontal alignment of data within cells of this row.
  5. The bgColor attribute specifies the background color for rows.
  6. The ch attribute specifies the alignment character for cells in a column.
  7. The chOff attribute specifies the offset of alignment character.
  8. The vAlign attribute specifies the vertical alignment of data within cells of this row.
  9. Methods

  10. The insertCell(index) method inserts an empty TD cell into this row.
  11. The deleteCell(index) method deletes a cell from the currrent row.

If you have comments or suggestions, email me at mbrady@nist.gov