JavaScript Reference/Javascript Methods/moveTo
"moveTo()" Example
<html>
<body>
<script language="JavaScript">
function function1() {
window.moveTo(100,300);
}
</script>
<input type="button" value="Move window" onclick="function1();">
</body>
</html>
"moveTo()" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |window |
+----------------+--------------------------------------------------------------+
"moveTo()" Syntax, Parameters and Note
Note:
Moves the current window to the specified coordinates.
Syntax:
window.moveTo(param1, param2)
Parameters:
param1 Required; the X coordinate of the new position.
param2 Required; the Y coordinate of the new position.