A table row (tr) element in an HTML table.
Platform Support
| IE | Mozilla | Netscape | Opera | Safari | Chrome | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | no |
|---|
Constructors
| Constructor | Action | IE | Mozilla | Netscape | Opera | Safari | Chrome | ||
|---|---|---|---|---|---|---|---|---|---|
|
HTMLTableRowElement Constructor() : HTMLTableRowElement
A table row (tr) element in an HTML table.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | no | ||
HTMLTableRowElement() : HTMLTableRowElementA table row (tr) element in an HTML table. Returns
|
|||||||||
Properties
| Property | Action | IE | Mozilla | Netscape | Opera | Safari | Chrome |
|---|---|---|---|---|---|---|---|
|
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+ | no |
|
|||||||
|
rowIndex
: Number
Position of the element in the table.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | no |
|
|||||||
|
sectionRowIndex
: Number
Position of the element within its table section.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | no |
|
|||||||
Functions
| Method | Action | IE | Mozilla | Netscape | Opera | Safari | Chrome | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
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+ | no | |||||
|
Parameters
Returns
|
||||||||||||
|
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+ | no | |||||
|
Parameters
Returns
|
||||||||||||
Availability
HTML DOM Level 1|HTML DOM Level 2|W3C