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