Java Reference
In-Depth Information
Method Name
Description
Introduced
deleteRow(index)
Deletes the row at the specifi ed index.
Level 1
deleteTFoot()
Deletes the table's footer if one exists.
Level 1
deleteTHead()
Deletes the table's header if one exists.
Level 1
insertRow(index)
Inserts and returns a new row at the specifi ed index. If
index is -1 or equal to the number of rows, the new row
is appended to the end of the row list.
Level 1
HTMLTableRowElement
Represents the <tr/> element.
Properties
Property Name
Description
Introduced
align
Deprecated. Gets or sets the value of the
align
attribute.
Level 1
bgColor
Deprecated. Gets or sets the value of the
bgcolor
attribute.
Level 1
cells
Returns an
HTMLCollection
containing the cells in the row.
Level 1
rowIndex
The index of the row in the table.
Level 1
sectionRowIndex
The index of the row relative to the section it belongs to
(
<thead/>
,
<tfoot/>
, or
<tbody/>
).
Level 1
vAlign
Gets or sets the value of the valign attribute.
Level 1
Methods
Method Name
Description
Introduced
deleteCell(index)
Deletes the cell at the specifi ed index.
Level 1
insertCell(index)
Inserts and returns an empty
<td/>
element. If
index
is
-1
or equal to the number of cells in the row, then the
new cell is appended to the end of the list.
Level 1