Window resizeTo () method
Definition and Usage
The method used to adjust the window size to the specified width and height.
grammar
window .resizeTo(width,height)
parameter | Explanation |
---|---|
width | Required. Set the window width, in pixels |
height | Required. Set the height of the window, in pixels |
Browser Support
All major browsers support resizeTo () method
Examples
Examples
Create a window, set the width and height of 500px:
var w=window.open('','', 'width=100,height=100');
w.resizeTo(500,500);
w.resizeTo(500,500);
try it"
Window object