August 2006
Intermediate to advanced
1018 pages
34h 13m
English
Window.resizeTo( ): resize a window — JavaScript 1.2:
window.resizeTo(width,height)
width
The desired width for the window.
height
The desired height for the window.
resizeTo( ) resizes
window so it is
width pixels wide and
height pixels high. For security reasons,
the browser may restrict this method to prevent scripts from making
windows very small. For usability reasons, it is almost always a bad
idea to change the size of a user’s window. If a script created a
window, the script can resize it, but it is bad form for a script to
resize the window that it is loaded into.
Read now
Unlock full access