Usage
The resizeBy() method is used to resize current window based on mentioned values.
|
Syntax
myWindow.resizeBy(x, y);
|
1 2 3 4 5 6 7 | <button onclick= "resizeBy()" >ResizeBy</button>
var myWindow = window.open( "" , "myWindow" , "width=200, height=100" );
function resizeBy() {
myWindow.resizeBy(250, 250);
myWindow.focus();
}
|
|
Output
Once we run the program, window will be opened with mentioned size.We can use resizeby button to make it to different size.
|