sizeToContent method (window)
Fit the size of the current window to its contents.
Syntax:
You can find the related objects in the Supported by objects section below.
Return value:
This method has no return value.
Example HTML code 1:
This example illustrates the use of the sizeToContent method:
|
||||
<button onclick="window.sizeToContent ();">Fit the size of the window to its contents!</button> |
||||
|
||||
Did you find this example helpful?
|
Supported by objects:
Related pages:
External links:
User Contributed Comments