Interface

HTMLTableElement

HTMLTableElement

Provides special properties and methods (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating the layout and presentation of tables in an HTML document.

View Source js/lib.dom.d.ts, line 3842

Members

string

# align

Sets or retrieves a value that indicates the table alignment.

View Source js/lib.dom.d.ts, line 3845

string

# bgColor

Deprecated:
  • Yes

View Source js/lib.dom.d.ts, line 3850

string

# border

Sets or retrieves the width of the border to draw around the object.

View Source js/lib.dom.d.ts, line 3854

HTMLTableCaptionElement | null

# caption

Retrieves the caption object of a table.

View Source js/lib.dom.d.ts, line 3859

string

# cellPadding

Sets or retrieves the amount of space between the border of the cell and the content of the cell.

View Source js/lib.dom.d.ts, line 3864

string

# cellSpacing

Sets or retrieves the amount of space between cells in a table.

View Source js/lib.dom.d.ts, line 3869

HTMLTableCaptionElement

# createCaption

Creates an empty caption element in the table.

View Source js/lib.dom.d.ts, line 3914

HTMLTableSectionElement

# createTBody

Creates an empty tBody element in the table.

View Source js/lib.dom.d.ts, line 3919

HTMLTableSectionElement

# createTFoot

Creates an empty tFoot element in the table.

View Source js/lib.dom.d.ts, line 3924

HTMLTableSectionElement

# createTHead

Returns the tHead element object if successful, or null otherwise.

View Source js/lib.dom.d.ts, line 3929

void

# deleteCaption

Deletes the caption element and its contents from the table.

View Source js/lib.dom.d.ts, line 3934

void

# deleteRow

Removes the specified row (tr) from the element and from the rows collection.

View Source js/lib.dom.d.ts, line 3939

void

# deleteTFoot

Deletes the tFoot element and its contents from the table.

View Source js/lib.dom.d.ts, line 3945

void

# deleteTHead

Deletes the tHead element and its contents from the table.

View Source js/lib.dom.d.ts, line 3950

string

# frame

Sets or retrieves the way the border frame around the table is displayed.

View Source js/lib.dom.d.ts, line 3874

HTMLTableRowElement

# insertRow

Creates a new row (tr) in the table, and adds the row to the rows collection.

View Source js/lib.dom.d.ts, line 3955

HTMLCollectionOf.<HTMLTableRowElement>

# rows

Sets or retrieves the number of horizontal rows contained in the object.

View Source js/lib.dom.d.ts, line 3879

string

# rules

Sets or retrieves which dividing lines (inner borders) are displayed.

View Source js/lib.dom.d.ts, line 3884

string

# summary

Sets or retrieves a description and/or structure of the object.

View Source js/lib.dom.d.ts, line 3889

HTMLCollectionOf.<HTMLTableSectionElement>

# tBodies

Retrieves a collection of all tBody objects in the table. Objects in this collection are in source order.

View Source js/lib.dom.d.ts, line 3894

HTMLTableSectionElement | null

# tFoot

Retrieves the tFoot object of the table.

View Source js/lib.dom.d.ts, line 3899

HTMLTableSectionElement | null

# tHead

Retrieves the tHead object of the table.

View Source js/lib.dom.d.ts, line 3904

string

# width

Sets or retrieves the width of the object.

View Source js/lib.dom.d.ts, line 3909