A table row (tr) element in an HTML table.
Platform Support
| IE | Mozilla | Netscape | Opera | Safari | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|---|
Constructors
| Constructor | Action | IE | Mozilla | Netscape | Opera | Safari | ||
|---|---|---|---|---|---|---|---|---|
|
HTMLTableRowElement Constructor() : HTMLTableRowElement
A table row (tr) element in an HTML table.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | ||
HTMLTableRowElement() : HTMLTableRowElementA table row (tr) element in an HTML table. Returns
|
||||||||
Properties
| Property | Action | IE | Mozilla | Netscape | Opera | Safari |
|---|---|---|---|---|---|---|
|
cells
: HTMLCollection
Array of all of the HTMLTableCellElement objects in the table row.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
|
rowIndex
: Number
Position of the element in the table.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
|
sectionRowIndex
: Number
Position of the element within its table section.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
Functions
| Method | Action | IE | Mozilla | Netscape | Opera | Safari | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
deleteCell(Number index) : void
Deletes the cell at the specified position from the row.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | |||||
|
Parameters
Returns
|
|||||||||||
|
static insertCell(Number index) : HTMLElement
Inserts a new empty table cell (td) at the specified position in the row.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | |||||
|
Parameters
Returns
|
|||||||||||
Availability
HTML DOM Level 1|HTML DOM Level 2|W3C
