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

setSizeĀ MethodĀ 

Sets the size of the control.

[JavaScript]
Control.setSize(width, height)

Parameters

width
The new width in pixel.
height
The new height in pixel.

Remarks

In standards-compliant mode, this method sets the control's root element's content box width and height. This is different from getOffsetWidth and getOffsetHeight, which return the width and height of the outter box respectively.

See Also

Control Object


Direct link to this topic