window.moveTo()
|
|
Syntax |
window.moveTo(numX, numY)
|
|
The moveTo() method moves the window to the specified location. |
The numX represents the x-coordinate, while the numY represents the y-coordinate. |
<html> <head> </head> <script language="JavaScript1.2"> <!-- function moveWin(form){ var myX = form.X.value; var myY = form.Y.value;
window.moveTo(myX, myY); } --> </script> <body> <form> <b>X-Coordinate:</b> <input type=TEXT name="X"><br> <b>Y-Coordinate:</b> <input type=TEXT name="Y"><br> <input type=BUTTON value="Move Window" onClick="moveWin(this.form)"></td> </form> </body> </html>
|
|
|
HTML code for linking to this page:
Related in same category :
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
|
|