Writes a horizontal rule tag (<hr>).

Syntax

JSV_hr([attributes, noShade])

Prototype

n/a

Returns

The hr function returns a horizontal rule tag.

Parameters

The hr function uses the following arguments.

Argument Description
attributes Optional. The attributes that define various properties for the element.
noShade Optional. Boolean value that defines those times when a solid bar is required, the NOSHADE attribute lets the user specify that the horizontal rule should not be shaded at all. Default value is false (i.e., shaded).

Remarks

See the Web Design Group HTML 4.0 Reference on the horizontal rule tag for more information.

Dependencies

JSV_isWhitespace

Example

The following lines of code

document.write( "This is line one" + 
    JSV_hr('COLOR="#FF0000"', true) +
    "This is line two" );

produce