TRNN n/a   IE 4   DOM 1

The TR object reflects the TR element. Note that the following items are not available in the Macintosh version of Internet Explorer 4: innerHTML, innerText, and outerText properties; insertAdjacentHTML( ) and insertAdjacentText( ) methods.

 
HTML Equivalent
<TR>
 
Object Model Reference
IE [window.]document.all.elementID
alignNN n/a   IE 4   DOM 1
 Read/Write
 

Defines the horizontal alignment of content within all cells of the row.

 
Example
document.all.myTR.align = "center"
 
Value
Any of the three horizontal alignment constants: center | left | right.
 
Default left
bgColorNN n/a   IE 4   DOM 1
 Read/Write
 

Background color of the table cells in the current row. This color setting is not reflected in the style sheet backgroundColor property. Even if the BGCOLOR attribute or bgColor property is set with a plain-language color name, the returned value is always a hexadecimal triplet.

 
Example
document.all.myTR.bgColor = "yellow"
 
Value
A hexadecimal triplet or plain-language color name.
 
Default Varies with browser and operating system.
borderColorNN n/a   IE 4   DOM n/a
 Read/Write
 

Color of the element's border. Internet Explorer applies the color to all four lines that make up the interior border of a cell. Therefore, colors of adjacent cells do not collide.

 
Example
document.all.myTR.borderColor = "salmon"
 
Value
A hexadecimal triplet or plain-language color name. A setting of empty is interpreted as "#000000" (black).
 
Default Varies with operating system.
borderColorDark, borderColorLightNN n/a   IE 4   DOM n/a
 Read/Write
 

The 3-D effect of table borders in Internet Explorer is created by careful positioning of light and dark lines around the page's background or default color. You can independently control the colors used for the dark and light lines by assigning values to the borderColorDark (left and top edges of the cell) and borderColorLight (right and bottom edges) properties.

Typically, you should assign complementary colors to the pair of properties. There is also no rule that says you must assign a dark color to borderColorDark. The attributes merely control a well-defined set of lines so you can predict which lines of the border change with each attribute.

 
Example
document.all.myTR.borderColorDark = "blue"
document.all.myTR.borderColorLight = "cornflowerblue"
 
Value
A hexadecimal triplet or plain-language color name. A setting of empty is interpreted as "#000000" (black).
 
Default Varies with operating system.
clientHeight, clientWidthNN n/a   IE 4   DOM n/a
 Read/Write
 

According to Microsoft's developer documentation, these properties reflect the height and width (in pixels) of the element's content.

 
Example
var midHeight = document.all.myTR.clientHeight/2
 
Value
Integer pixel value.
 
Default None.
rowIndexNN n/a   IE 4   DOM n/a
 Read-only
 

Returns a zero-based integer representing the position of the current row among all other TR elements in the entire table. The count is based on the source code order of the TR elements.

 
Example
var whichRow = document.all.myTR.rowIndex
 
Value
Integer.
 
Default None.
sectionRowIndexNN n/a   IE 4   DOM n/a
 Read-only
 

Returns a zero-based integer representing the position of the current row among all other TR elements in the row grouping. A row grouping can be one of the following elements: THEAD, TBODY, TFOOT. The count is based on the source code order of the TR elements.

 
Example
var whichRow = document.all.myTR.sectionRowIndex
 
Value
Integer.
 
Default None.
vAlignNN n/a   IE 4   DOM n/a
 Read/Write
 

The manner of vertical alignment of text within the cells of the current row.

 
Example
document.all.myTR.vAlign = "baseline"
 
Value
Case-insensitive constant (as a string): baseline | bottom | middle | top.
 
Default middle
blur( )NN n/a   IE 4   DOM n/a

Removes focus from the current element and fires an onBlur event (in IE). No other element necessarily receives focus as a result.

 
Returned Value
None.
 
Parameters
None.
focus( )NN n/a   IE 4   DOM n/a

Gives focus to the current element and fires the onFocus event (in IE). If another element had focus at the time, it receives an onBlur event.

 
Returned Value
None.
 
Parameters
None.
cells[ ]NN n/a   IE 4   DOM n/a

An array of all TD element objects contained by the current TR object. Items in this array are indexed (zero based) in source code order. Each item of the array is an object whose properties and methods may be accessed as if the object were referenced directly.

 
Syntax
TRobject.cells(index).objectPropertyOrMethod