JavaScript Reference/Javascript Methods/moveTo
"moveTo()" Example
<source lang="javascript">
<html> <body> <script language="JavaScript"> function function1() {
window.moveTo(100,300);
} </script> <input type="button" value="Move window" onclick="function1();"> </body> </html>
</source>
"moveTo()" is applied to
<source lang="javascript">
+----------------+--------------------------------------------------------------+ | Applied_To |window | +----------------+--------------------------------------------------------------+
</source>
"moveTo()" Syntax, Parameters and Note
<source lang="javascript">
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. </source>