Resizing a window
|resizeBy(dx, dy)||Resizes a window by the specified amount in pixels|
|resizeTo(x y)||Resizes a window to the specified pixel values|
Note that in most browsers, resizing a window to below 100 by 100 in pixels require permission using signed script (for security reasons). Let's cut straight to the chase now, and show some examples using them.
Example #1: Resizing the window to fit the entire screen
Here's a rather useful script that resizes the current window to fit the entire screen:
Note the moveTo() above, which first moves the window to the upper left corner of the screen before resizing...
Example #2: Animated window opener