Easy Tutorial
❮ Met Canvas Addcolorstop Met Textarea Select ❯

Window resizeTo() Method


Definition and Usage

The method is used to resize the window to the specified width and height.

Syntax

Parameter Description
width Required. Sets the window's width in pixels.
height Required. Sets the window's height in pixels.

Browser Support

All major browsers support the resizeTo() method.

Starting from Firefox 7, the browser window size cannot be changed according to the following rules:


Example

Create a window and set its width and height to 500px:

❮ Met Canvas Addcolorstop Met Textarea Select ❯