The resizeTo() method resizes a window to the specified width and height.
|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:
Your message has been sent to W3Schools.