Section 25.314. Window.resizeTo( ): resize a window


25.314. Window.resizeTo( ): resize a window

JavaScript 1.2:

25.314.1. Synopsis

 window.resizeTo(width, height) 

25.314.1.1. Arguments

width

The desired width for the window.


height

The desired height for the window.

25.314.2. Description

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.




JavaScript. The Definitive Guide
JavaScript: The Definitive Guide
ISBN: 0596101996
EAN: 2147483647
Year: 2004
Pages: 767

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net