August 1999
Intermediate to advanced
1488 pages
72h 53m
English
window.resizeBy(numHort, numVert)
The resizeBy() method of the Window object resizes 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 want to size the window by, while the second numeric value represents the horizontal number of pixels.
If the numbers passed are positive, the window size is increased. Negative numbers reduce the size of the window.
Listing 7.575 has four buttons. Two buttons are for increasing height, and the other two are for increasing width. If you click these buttons, the window will resize ...
Read now
Unlock full access