HR.width (Property)

A width measurement of the <HR> object.

Availability:

DOM level - 1
JavaScript - 1.5
JScript - 3.0
Internet Explorer - 4.0
Netscape - 6.0
Property/method value type:String primitive
JavaScript syntax:-myHR.width

The width of the rule can be defined in pixels as an absolute measure or by specifying the value as a percentage of its containing element's width.

Although the value is noted as being a String primitive, a numeric value is specified for the width measured in pixels. It is a string value simply so that it can accommodate the percentage value.