home / experts / javascript / column90 |
|
Setting the Window's Size and LocationThere are five parameters you can use to impact the size and location of the new window. You can control its height, width, its upper-left corner's x and y offsets relative to the upper-left corner of the desktop, and whether to center the dialog window within the desktop. The
Since the default unit of measure for physical dimensions is not consistent between different versions of Internet Explorer, it is safer to always specify the units. You can use absolute units ( Let's play with the window's width now. To open a window
Notice that the window is centered within the desktop. This is the default of the
The window opens close to the upper-left corner of the desktop. You can control the specific location of the window with the
Even if you do center the window, its position specifications (
Next: How to impact the dialog box's ornaments |
Produced by Yehuda Shiran and Tomer Shiran
All Rights Reserved. Legal Notices.
Created: August 13, 2001
Revised: August 13, 2001
URL: http://www.webreference.com/js/column90/4.html