Easy Tutorial
❮ Prop Tabledata Rowspan Jsref Switch ❯

Window resizeBy() Method


Definition and Usage

The resizeBy() method is used to resize a window by the specified number of pixels.

Note: This method moves the bottom-right corner of the specified window by the number of pixels, while the top-left corner remains stationary (it stays at its original coordinates).

Syntax

Parameter Description
width Required. The number of pixels to increase the window width by. Can be a positive or negative value.
height Optional. The number of pixels to increase the window height by. Can be a positive or negative value.

Browser Support

All major browsers support the resizeBy() method, except for Opera and Chrome.


Example

Resize the window by various amounts:


❮ Prop Tabledata Rowspan Jsref Switch ❯