See also: table, th, td

Encloses the passed information in a table row tag (<tr></tr>)

Syntax

JSV_tr(rowData [, attributes])

Prototype

rowData.TR([attributes])

Returns

The tr returns the passed information in a table row tag. If no data is passed, then the tr function returns an empty, single row cell (i.e., <tr><td>&nbsp;</td></tr>).

Parameters

The tr function uses the following arguments.

Argument Description
rowData The table header or table data that is to be enclosed in the table row.
attributes Optional. The attributes that define various properties for the element.

Remarks

See the Web Design Group HTML 4.0 Reference on the table row tag for more information.

Dependencies

JSV_isWhitespace

Example

The following lines of code

var row1 =
    JSV_td('This is cell 1'.bold()) + 
    JSV_td('This is cell 2'.bold());
var row2 =
    JSV_td('This is cell 1') + 
    JSV_td('This is cell 2');
document.write( JSV_table( JSV_tr(row1, 'BGCOLOR="#00FFFF"') +
    JSV_tr(row2), 'BORDER="1" CELLSPACING="1" CELLPADDING="1"' ) );

produce