Name

TableSection: a header, footer, or body section of a table — DOM Level 2 HTML: Node → Element → HTMLElement → TableSection

Properties

readonly HTMLCollection rows

An array (HTMLCollection) of TableRow objects representing the rows in this section of the table.

In addition to the rows property, this interface defines the following properties, which represent the attributes of the underlying HTML element:

Property

Attribute

Description

String align

align

Default horizontal alignment of cells in this section of the table

String ch

char

Default alignment character for cells in this section

String chOff

choff

Default alignment offset for cells in this section

String vAlign

valign

Default vertical alignment for cells in this section

Methods

deleteRow( )

Deletes the specified numbered row from this section.

insertRow( )

Inserts an empty row into this section at the specified position.

Description

This interface represents a <tbody>, <thead>, or <tfoot> section of an HTML table. The tHead and tFoot properties of a Table are TableSection objects, and the tBodies property is an array of TableSection objects.

Get JavaScript: The Definitive Guide, 5th Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.