The information in this article applies to:
SYMPTOMS
The Dynamic HTML (DHTML) window object provides a showModalDialog method,
which creates a dialog box to display an HTML document. The "features"
parameter of this method describes how the dialog box is to look and
includes dialogHeight and dialogWidth values to indicate the size of the
dialog box.
CAUSEHTML dialog boxes created by showModalDialog ignore changes to dialogHeight and dialogWidth unless the dialog HTML page contains at least one <SCRIPT> block. RESOLUTIONSolution 1Add at least one <SCRIPT> block to the dialog HTML page. This <SCRIPT> block can be empty:
Solution 2Provide a style for the HTML tag in the HEAD element of the dialog HTML document that specifies the width and height attributes. The following HTML demonstrates this:
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug was corrected in Microsoft Internet Explorer 5. MORE INFORMATIONThe following SCRIPT code reproduces this symptom if Dlg.htm is an HTML file with no <SCRIPT> blocks:
REFERENCESFor more information, please see the MSDN Web Workshop: http://msdn.microsoft.com/workshop/default.asp © Microsoft Corporation 1999, All Rights Reserved. Additional query words:
Keywords : kbIE400bug kbIE401bug kbWebBrowser kbIE401sp1bug kbIE500fix kbIEdp1bug |
Last Reviewed: January 12, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |