Window Object
The resizeTo() method resizes a window to the specified width and height.
| Parameter | Description |
|---|---|
| width | Required. Sets the width of the window, in pixels |
| height | Required. Sets the height of the window, in pixels |
![]()
The resizeTo() method is supported in all major browsers.
Create a window, and resize the width and height to 500px:
Window Object
Your message has been sent to W3Schools.