Browser/User Agent Support
| IE | Mozilla | Netscape | Opera | Safari | Netscapte | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | no |
|---|
Constructors
| Constructor | IE | Mozilla | Netscape | Opera | Safari | Netscapte |
|---|---|---|---|---|---|---|
A table in an HTML document. | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | no |
Properties
| Property | IE | Mozilla | Netscape | Opera | Safari | Netscapte |
|---|---|---|---|---|---|---|
Reference to the table Caption element. | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | no |
Array of all of the HTMLTableRowElement objects in the table. | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | no |
Array of all of the HTMLTableSectionElement objects in the table. | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | no |
| ||||||
The tfoot element for the table. | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | no |
| ||||||
The thead element for the table. | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | no |
| ||||||
Methods
| Method | IE | Mozilla | Netscape | Opera | Safari | Netscapte |
|---|---|---|---|---|---|---|
Creates a caption element for the table or returns the existing caption. | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | no |
| ||||||
Creates a tfoot element for the table or returns the existing tfoot. | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | no |
| ||||||
Creates a thead element for the table or returns the existing thead. | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | no |
| ||||||
Deletes the caption element from the table. | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | no |
Deletes a row at the specified position in the table. | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | no |
Deletes the tfoot element from the table. | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | no |
Deletes the thead element from the table. | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | no |
Inserts a new empty row (tr element) at the specified position in the table. | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | no |
References
HTMLTableCaptionElement | HTMLTableCellElement | HTMLTableColElement | HTMLTableRowElement | HTMLTableSectionElement
Availability
HTML DOM Level 1 | HTML DOM Level 2 | W3C
Constructor Detail
Property Detail
HTMLTableCaptionElement caption
Reference to the table Caption element.
-
For examples, see the quirksmode test page:
- Availability
HTML DOM Level 1 | HTML DOM Level 2 | W3C
HTMLCollection rows - read only
Array of all of the HTMLTableRowElement objects in the table.
-
For examples, see the quirksmode test page:
- Availability
HTML DOM Level 1 | HTML DOM Level 2 | W3C
HTMLCollection tBodies - read only
Array of all of the HTMLTableSectionElement objects in the table.
-
For examples, see the quirksmode test page:
- Availability
HTML DOM Level 1 | HTML DOM Level 2 | W3C
HTMLTableSectionElement tFoot
The tfoot element for the table.
-
For examples, see the quirksmode test page:
- Availability
HTML DOM Level 1 | HTML DOM Level 2 | W3C
HTMLTableSectionElement tHead
The thead element for the table.
-
For examples, see the quirksmode test page:
- Availability
HTML DOM Level 1 | HTML DOM Level 2 | W3C
Method Detail
createCaption() : static HTMLElement
Creates a caption element for the table or returns the existing caption.
-
For examples, see the quirksmode test page:
- Availability
HTML DOM Level 1 | HTML DOM Level 2 | W3C
createTFoot() : static HTMLElement
Creates a tfoot element for the table or returns the existing tfoot.
-
For examples, see the quirksmode test page:
- Availability
HTML DOM Level 1 | HTML DOM Level 2 | W3C
createTHead() : static HTMLElement
Creates a thead element for the table or returns the existing thead.
-
For examples, see the quirksmode test page:
- Availability
HTML DOM Level 1 | HTML DOM Level 2 | W3C
deleteCaption() : void
Deletes the caption element from the table.
-
For examples, see the quirksmode test page:
- Availability
HTML DOM Level 1 | HTML DOM Level 2 | W3C
deleteRow(Number index) : void
Deletes a row at the specified position in the table.
| Number | index | Index of the row to delete. |
-
For examples, see the quirksmode test page:
- See Also
- Availability
HTML DOM Level 1 | HTML DOM Level 2 | W3C
deleteTFoot() : void
Deletes the tfoot element from the table.
-
For examples, see the quirksmode test page:
- Availability
HTML DOM Level 1 | HTML DOM Level 2 | W3C
deleteTHead() : void
Deletes the thead element from the table.
-
For examples, see the quirksmode test page:
- Availability
HTML DOM Level 1 | HTML DOM Level 2 | W3C
insertRow(Number index) : static HTMLElement
Inserts a new empty row (tr element) at the specified position in the table.
| Number | index | Index for the row before where the new row will be inserted. |
-
For examples, see the quirksmode test page:
- See Also
- Availability
HTML DOM Level 1 | HTML DOM Level 2 | W3C
