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.
§Extends
§Properties
Sets or retrieves the amount of space between the border of the cell and the content of the cell.
Sets or retrieves the number of horizontal rows contained in the object.
Retrieves a collection of all tBody objects in the table. Objects in this collection are in source order.
Retrieves the tFoot object of the table.
Retrieves the tHead object of the table.
§Methods
Creates an empty caption element in the table.
Creates an empty tBody element in the table.
Creates an empty tFoot element in the table.
Returns the tHead element object if successful, or null otherwise.
Removes the specified row (tr) from the element and from the rows collection.
Number that specifies the zero-based position in the rows collection of the row to remove.
Creates a new row (tr) in the table, and adds the row to the rows collection.
Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection.