HTMLTableSectionElement : HTMLElement

A header (thead), footer (tfoot), or body section (tbody) in an HTML table.

Browser/User Agent Support

IEMozillaNetscapeOperaSafariNetscapte
4.0+1.0+6.0+7.0+1.0+no

Constructors

ConstructorIEMozillaNetscapeOperaSafariNetscapte
A header (thead), footer (tfoot), or body section (tbody) in an HTML table.
4.0+1.0+6.0+7.0+1.0+no
 

Properties

PropertyIEMozillaNetscapeOperaSafariNetscapte
Array of all of the HTMLTableRowElement objects in the section of the table.
4.0+1.0+6.0+7.0+1.0+no
 

Methods

MethodIEMozillaNetscapeOperaSafariNetscapte
Deletes the row at the specified position in the table section.
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
 

Availability

HTML DOM Level 1 | HTML DOM Level 2 | W3C

Constructor Detail

HTMLTableSectionElement HTMLTableSectionElement()

A header (thead), footer (tfoot), or body section (tbody) in an HTML table.

Visibility
internal

Property Detail

HTMLCollection rows - read only

Array of all of the HTMLTableRowElement objects in the section of the table.

For examples, see the quirksmode test page:

http://www.quirksmode.org/dom/tests/table_access.html

Availability

HTML DOM Level 1 | HTML DOM Level 2 | W3C

Method Detail

deleteRow(Number index) : void

Deletes the row at the specified position in the table section.

NumberindexIndex position of the row to delete.

For examples, see the quirksmode test page:

http://www.quirksmode.org/dom/tests/table_credel.html

See Also

HTMLTableElement.deleteRow

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.

NumberindexIndex of the row before where the row will be inserted.

For examples, see the quirksmode test page:

http://www.quirksmode.org/dom/tests/table_credel.html

See Also

HTMLTableElement.insertRow

Availability

HTML DOM Level 1 | HTML DOM Level 2 | W3C