August 1999
Intermediate to advanced
1488 pages
72h 53m
English
window.moveBy(numHort, numVert)
The moveBy() method of the Window object moves the specified window by the number of pixels passed to the method. As shown in the syntax definition, the first numeric value passed to the method represents the number of vertical pixels you wish to move the window, while the second numeric value represents the horizontal number of pixels.
If the numbers passed are positive, the window is moved to the right horizontally, and up vertically. Negative numbers move the window in the opposite direction.
Listing 7.552 has four buttons: Up, Down, Right, and Left. If you click these buttons, the window the document is loaded in will ...
Read now
Unlock full access