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 | ||
|---|---|---|---|---|---|---|---|---|---|
|
HTMLTableElement Constructor() : HTMLTableElement
A table in an HTML document.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | no | ||
HTMLTableElement() : HTMLTableElementA table in an HTML document. Returns
|
|||||||||
Properties
| Property | Action | IE | Mozilla | Netscape | Opera | Safari | Chrome |
|---|---|---|---|---|---|---|---|
|
caption
: HTMLTableCaptionElement
Reference to the table Caption element.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | no |
|
|||||||
|
rows
: HTMLCollection
Array of all of the HTMLTableRowElement objects in the table.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | no |
|
|||||||
|
tBodies
: HTMLCollection
Array of all of the HTMLTableSectionElement objects in the table.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | no |
|
|||||||
|
tFoot
: HTMLTableSectionElement
The tfoot element for the table.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | no |
|
|||||||
|
tHead
: HTMLTableSectionElement
The thead element for the table.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | no |
|
|||||||
Functions
| Method | Action | IE | Mozilla | Netscape | Opera | Safari | Chrome | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
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+ | no | |||||
Returns
|
||||||||||||
|
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+ | no | |||||
Returns
|
||||||||||||
|
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+ | no | |||||
Returns
|
||||||||||||
|
deleteCaption() : void
Deletes the caption element from the table.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | no | |||||
|
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+ | no | |||||
|
Parameters
Returns
|
||||||||||||
|
deleteTFoot() : void
Deletes the tfoot element from the table.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | no | |||||
|
Returns
|
||||||||||||
|
deleteTHead() : void
Deletes the thead element from the table.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | no | |||||
|
Returns
|
||||||||||||
|
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+ | no | |||||
|
Parameters
Returns
|
||||||||||||
References
HTMLTableCaptionElement|HTMLTableCellElement|HTMLTableColElement|HTMLTableRowElement|HTMLTableSectionElement
Availability
HTML DOM Level 1|HTML DOM Level 2|W3C