Usage
The moveBy() is used to move by specified location.
|
Syntax
myWindow.moveBy(x, y)
|
<button onclick="moveby()">Moveby</button>
var myWindow = window.open("", "myWindow", "width=200, height=100");
function moveby() {
myWindow.moveBy(250, 250);
myWindow.focus();
}
|
Output
Once we run the program, window will be opened with mentioned size.Once u click moveby button, it will be moved to specified location.
|