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 | ||
|---|---|---|---|---|---|---|---|---|
|
HTMLTableElement Constructor() : HTMLTableElement
A table in an HTML document.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | ||
HTMLTableElement() : HTMLTableElementA table in an HTML document. Returns
|
||||||||
Properties
| Property | Action | IE | Mozilla | Netscape | Opera | Safari |
|---|---|---|---|---|---|---|
|
caption
: HTMLTableCaptionElement
Reference to the table Caption element.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
|
rows
: HTMLCollection
Array of all of the HTMLTableRowElement objects in the table.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
|
tBodies
: HTMLCollection
Array of all of the HTMLTableSectionElement objects in the table.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
|
tFoot
: HTMLTableSectionElement
The tfoot element for the table.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
|
tHead
: HTMLTableSectionElement
The thead element for the table.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
Functions
| Method | Action | IE | Mozilla | Netscape | Opera | Safari | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
static createCaption() : HTMLElement
Creates a caption element for the table or returns the existing caption.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | |||||
Returns
|
|||||||||||
|
static createTFoot() : HTMLElement
Creates a tfoot element for the table or returns the existing tfoot.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | |||||
Returns
|
|||||||||||
|
static createTHead() : HTMLElement
Creates a thead element for the table or returns the existing thead.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | |||||
Returns
|
|||||||||||
|
deleteCaption() : void
Deletes the caption element from the table.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | |||||
|
Returns
|
|||||||||||
|
deleteRow(Number index) : void
Deletes a row at the specified position in the table.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | |||||
|
Parameters
Returns
|
|||||||||||
|
deleteTFoot() : void
Deletes the tfoot element from the table.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | |||||
|
Returns
|
|||||||||||
|
deleteTHead() : void
Deletes the thead element from the table.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | |||||
|
Returns
|
|||||||||||
|
static insertRow(Number index) : HTMLElement
Inserts a new empty row (tr element) at the specified position in the table.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | |||||
|
Parameters
Returns
|
|||||||||||
References
HTMLTableCaptionElement|HTMLTableCellElement|HTMLTableColElement|HTMLTableRowElement|HTMLTableSectionElement
Availability
HTML DOM Level 1|HTML DOM Level 2|W3C
