Table object set Table object: The table in the HTML document. For each <Table> mark in the document, the browser creates a table object. |
| Set |
Description |
| Cells [] |
Returns an array containing all cells in the table. |
| Rows [] |
Returns an array containing all rows in a table. |
| Tbodies [] |
Returns an array containing all tbodies in the table. |
| Table Object Attributes |
| Border |
Set or retrieve table borders |
| Caption |
Set or retrieve table titles |
| Cellpadding |
Set or retrieve the border and content width of each cell |
| Cellspacing |
Set or get the cell spacing in the table |
| Frame |
Set or obtain the border of a table |
| Rules |
Set or retrieve the internal border in the table |
| Summary |
Set or retrieve table descriptions |
| Tfoot |
Get the table's tfoot object |
| Thead |
Get thead object of the table |
| Width |
Set or retrieve table width |
| Accesskey |
Set or obtain the shortcut key for this object |
| Align |
Sets or obtains the horizontal alignment of text in cells in a table row. |
| Choff |
Set or obtain the cell alignment and offset features |
| Colspan |
Sets or obtains the number of table columns that a cell spans. |
| Height |
Set or retrieve the table Row Height |
| Innerhtml |
Set or obtain HTML text between table row tags |
| Innertext |
Set or obtain text between table row tags |
| Rowindex |
Obtain the position of the table row object in the table row set. |
| Sectionrowindex |
Get the location of the table row object in the tbody, thead, or tfoot in the row set |
| Tabindex |
Set or obtain the tab sequence index of table rows |
| Valign |
Sets or obtains the vertical alignment of text in a table row. |
| Table object Method |
| Createcaption () |
Create an empty title element for the table |
| Createtfoot () |
Create an empty tfoot element for the table |
| Createthead () |
Create an empty thead element for the table |
| Deletecaption () |
Delete table title Element |
| Deleterow () |
Deletes a specified table row. |
| Deletetfoot () |
Delete the tfoot element of a table |
| Deletethead () |
Delete the thead element of a table |
| Blur () |
Cancel the activation status of this object |
| Click () |
Simulate Mouse clicking on this object |
| Deletecell ([I]) |
Deletes a specified cell in a table row. |
| Focus () |
Move focus to table row |
| Insertcell () |
Insert a new cell into the table row |
| Insertrow () |
Insert a new row into the table |
| |
|