Window.resizeTo() (Method)

Resize the window to specified dimensions.

Availability:

JavaScript - 1.2
JScript - 3.0
Internet Explorer - 4.0
Netscape - 4.0
Property/method value type:undefined
JavaScript syntax:-myWindow.resizeTo(aSizeX, aSizeY)
-resizeTo(aSizeX, aSizeY)
Argument list:aSizeXA distance in pixels
aSizeYA distance in pixels

The window size will be altered to the horizontal and vertical values specified in the two parameters. The left and top edges will stay in the same place but the right and bottom edges will be adjusted to reflect the new width and height.

Warnings:

See also:Frame object, UniversalBrowserWrite, Window object, Window.moveBy(), Window.moveTo(), Window.onresize, Window.resizeBy()

insert figure 0074