JavaScript Reference/Javascript Methods/moveBy
"moveBy()" Example
<source lang="javascript">
<html> <body> <script language="JavaScript"> function function1() {
window.moveBy(100,100);
} </script> <input type="button" value="Move the window 100 pixels to the left and 100 pixels from the top of the current location" onclick="function1();"> </body> </html>
</source>
"moveBy()" is applied to
<source lang="javascript">
+----------------+--------------------------------------------------------------+ | Applied_To |window | +----------------+--------------------------------------------------------------+
</source>
"moveBy()" Syntax, Parameters and Note
<source lang="javascript">
Note: Moves the window by the specified horizontal and vertical offsets.
Syntax:
window.moveBy(param1, param2) Parameters:
param1 Required; the horizontal offset in pixels. param2 Required; the vertical offset in pixels. </source>