Resizing a window

Same concept again, different action again. The new
resizeBy() and resizeBy() methods of JavaScript1.2 allow you to
programmatically resize the window. Here are the methods to accomplishing
this:

Methods

Description

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:

And with that I also end this tutorial. Just one word of
advice- as useful as these newly learned JavaScript methods can be, don't
give them too much control over your page...manual is often times still the
most practical!