Usage
The resizeTo() method is used to modify a window to the mentioned size.
|
Syntax
myWindow.resizeTo(x,y);
|
<button onclick="resizeTo()">ResizeTo</button>
var myWindow = window.open("", "myWindow", "width=200, height=100");
function resizeTo() {
myWindow.resizeTo(250, 250);
myWindow.focus();
}
|
Output
Once we run the program, window will be opened with mentioned size.We can use resizeTo button to make it to different size.
|