Site Map | About Us | Contact Us  
 The same content in Microsoft HTML help file format is included in the download package.

setWidth Method 

Sets the pixel width of the control.

[JavaScript]
Control.setWidth(width)

Parameters

width
The new width in pixel.

Remarks

In standards-compliant mode, this method sets the control's root element's content box width, which is the distance between the left and right edge of the inner box. On the other hand, getOffsetWidth returns the width of the outter box, which can be a greater value.

See Also

Control Object


Direct link to this topic