See also: table, th, td |
Encloses the passed information in a table row tag (<tr></tr>)
JSV_tr(rowData [, attributes])
rowData.TR([attributes])
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> </td></tr>).
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. |
See the Web Design Group HTML 4.0 Reference on the table row tag for more information.
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
Copyright © 1998-2000 Roaring Fork Software. All rights reserved.