1 out of 1 rated this helpful - Rate this topic

HTMLTableRowElement Prototype

Defines the properties and methods inherited by objects in the HTMLTableRowElement prototype chain.

Syntax

HTML N/A
Scripting HTMLTableRowElement.prototype

Members Table

The following table lists the members exposed by the HTMLTableRowElement Constructor object.

Attributes/Properties

Attribute Property Description
ALIGN align Sets or retrieves the alignment of the object relative to the display or table.
BGCOLOR bgColor Deprecated. Sets or retrieves the background color behind the object.
borderColorDark Sets or retrieves the color for one of the two colors used to draw the 3-D border of the object.
borderColorLight Sets or retrieves the color for one of the two colors used to draw the 3-D border of the object.
CH ch Gets or sets a value that you can use to implement your own ch functionality for the object.
CHOFF chOff Gets or sets a value that you can use to implement your own chOff functionality for the object.
rowIndex Retrieves the position of the object in the rows collection for the table.
sectionRowIndex Retrieves the position of the object in the tBody, tHead, tFoot, or rows collection.
VALIGN vAlign Sets or retrieves how text and other content are vertically aligned within the object that contains them.

Collections

Collection Description
cells Retrieves a collection of all cells in the table row or in the entire table.

Methods

Method Description
deleteCell Removes the specified cell (td) from the table row, as well as from the cells collection.
insertCell Creates a new cell in the table row (tr), and adds the cell to the cells collection.

Styles

Style attribute Style property Description
border-color borderColor Gets or sets the border color of the object.
height height Gets or sets the height of the object.

Remarks

For more information on this and other DOM Prototypes , see Document Object Model Prototypes, Part 1: Introduction.

This prototype derives from the Element Constructor.

Applies To

TR

See Also

Did you find this helpful?
(1500 characters remaining)

Community Additions

© 2013 Microsoft. All rights reserved.