JavaScript Window resizeTo()
JavaScript Window resizeTo()
The resizeTo() method is used for resizing a window to a new width and height. Its similar method is resizeBy() method.
Syntax:-
Its syntax is:- window.resizeTo(width, height)
Further Explanation:-
Parameter | Description |
width | Required. The new window width in pixels |
height | Required. The new window height in pixels |