Export (0) Print
Expand All

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