Knowledge Walls
Laya
Hyderabad, Andhra Pradesh, India
window.moveTo() Method in Window Object of Javascript Syntax with Examples
1105 Views
Usage 
The moveTo() is used to move the screen to specified location.
Syntax 
myWindow.moveTo(x, y)
Usage
<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.
Previous Topics
Previous lessons of current book.
Best Lessons of "Javascript Syntax with Examples"
Top lessons which are viewed more times.
  Copyright © 2014 Knowledge walls, All rights reserved
KnowledgeWalls
keep your tutorials and learnings with KnowledgeWalls. Don't lose your learnings hereafter. Save and revise it whenever required.
Click here for more details