Microsoft KB Archive/261944

= PRB: ShowModalDialg Ignores Size Parameters =

Article ID: 261944

Article Last Modified on 5/12/2007

-

APPLIES TO


 * Microsoft Internet Explorer 5.0
 * Microsoft Internet Explorer 5.01

-



This article was previously published under Q261944



SYMPTOMS
The showModalDialog method opens a dialog box with the default size and location, ignoring values specified in dialogHeight or dialogWidth.



CAUSE
The unit of measure is not specified in dialogHeight or dialogWidth, or these values are separated by a comma.



RESOLUTION
To resolve this problem, specify the unit of measure for the dialogHeight and dialogWidth and make sure that they are separated by a semicolon.



STATUS
This behavior is by design.



Steps to Reproduce Behavior
  Create a html page, Test.htm, with the following code:     

 function openDialog {   window.showModalDialog(&quot;http://www.microsoft.com&quot;,&quot;&quot;,&quot;dialogHeight:100;dialogWidth:500;&quot;);

}   </HTML> </li> <li>Navigate to Test.htm with Internet Explorer.</li> <li>Click the Open Dialog button.</li></ol>

<div class="references_section">