Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

width property

Gets the width of the rectangle that surrounds the object content.

Internet Explorer 9

 

Syntax

JavaScript

p = object.width

 

Property values

Type: Floating-point

The width of the rectangle, in pixels.

Standards information

Remarks

The width of the rectangle can also be calculated by subtracting the value of the left property from the value of the right property.

See also

TextRectangle
height

 

 

Show:
© 2014 Microsoft