See also: table, tr, td

Encloses the passed information in a table header tag (<th></th>).

Syntax

JSV_th(headerData [, attributes])

Prototype

headerData.TH([attributes])

Returns

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

Parameters

The th function uses the following arguments.

Argument Description
headerData The textual information that is to be enclosed in the table header.
attributes Optional. The attributes that define various properties for the element.

Remarks

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

Dependencies

JSV_isWhitespace

Example

The following lines of code

document.write( 
    JSV_table( JSV_tr(JSV_th('This is my table header')), 
    'width="50%" border="1"' ) );

produce