Javascript Reference
Categories: window

javascript window dialogHeight, dialogWidth

@March 15, 2008, 1:22 a.m.
dialogHeight, dialogWidthFirefox/Netscape/NN n/a IE 4(Win) Chrome/Safari/DOM n/a  

Read/Write  

Specify the height and width values of a modal dialog window created with the showModalDialog( ) and showModelessDialog( ) methods. Although Internet Explorer does not balk at modifying these properties (in a script running in the modal dialog window), the changed values are generally not reflected in a resized dialog window. Initial values are set as parameters to the dialog-opening methods.

 
Example
 
var outerWidth = window.dialogWidth;
 
Value

String, including the unit value (e.g., 520px).

 
Default

None.


Powered by Linode.