Name

Window.resizeTo( ) — resize a window

Availability

JavaScript 1.2

Synopsis

                  window.resizeTo(width, height)

Arguments

width

The desired width for the window.

height

The desired height for the window.

Description

resizeTo( ) resizes window so it is width pixels wide and height pixels high. For security reasons, the browser may restrict this method so that neither width nor height is smaller than 100 pixels.

Get JavaScript: The Definitive Guide, Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.