HTML Dialog Window Does Not Work Correctly or You Receive a Script Error Message

Article translations Article translations
Article ID: 814458 - View products that this article applies to.
Expand all | Collapse all

SYMPTOMS

After you install the February, 2003, Cumulative Patch for Internet Explorer (MS03-004), an HTML dialog window that is opened by a Web page may not work correctly, or you may receive a script error message.

CAUSE

This problem occurs when script in an HTML dialog window (that is opened by using the showModalDialog or showModelessDialog method) tries to set the security domain of the document to a different value by using the document.Domain property. After you install the February, 2003, Cumulative Patch for Internet Explorer (MS03-004), this type of domain change is denied to prevent a malicious Web site operator from accessing information in another Internet domain, or on your local computer.

WORKAROUND

Contact the administrator or content developer for the Web site to resolve this issue. Content developers who must set the domain property for the dialog window to another value but must still have access to the dialogArguments property values can work around this issue by creating a local variable to store the dialogArguments value before the document.Domain property is used to change the domain. After the domain change, the local variable can be used in the rest of the script to use the information that was passed to the showModalDialog or showModelessDialog method as arguments.

STATUS

This behavior is by design.

MORE INFORMATION

The showModalDialog and showModelessDialog methods support three parameters: the Uniform Resource Locator (URL), the arguments, and the features of the dialog window. Scripts that run in a dialog window that is created by using the showModalDialog or showModelessDialog method have access to only the URL that was used to create the dialog window when they try to change the domain. After you install the February, 2003, Cumulative Patch for Internet Explorer (MS03-004), the document.Domain property cannot be used to change the domain of an HTML dialog window to a domain that is different from the URL that appears in the dialog window.

For additional information about the February, 2003, Cumulative Patch for Internet Explorer (MS03-004), click the following article number to view the article in the Microsoft Knowledge Base:
810847 MS03-004: February, 2003, Cumulative Patch for Internet Explorer

REFERENCES

For additional information about the showModalDialog method, visit the following Microsoft Web site:
http://msdn2.microsoft.com/en-us/library/ms536759.aspx
For additional information about the showModelessDialog method, visit the following Microsoft Web site:
http://msdn2.microsoft.com/en-us/library/ms536761.aspx
For additional information about the domain property, visit the following Microsoft Web site:
http://msdn2.microsoft.com/en-us/library/ms533740.aspx

Properties

Article ID: 814458 - Last Review: May 16, 2007 - Revision: 3.5
APPLIES TO
  • Microsoft Internet Explorer 6.0 Service Pack 1, when used with:
    • Microsoft Windows XP Home Edition
    • Microsoft Windows XP Professional
    • Microsoft Windows XP Media Center Edition
    • Microsoft Windows XP Tablet PC Edition
    • Microsoft Windows XP Professional x64 Edition
    • Microsoft Windows 2000 Advanced Server
    • Microsoft Windows 2000 Datacenter Server
    • Microsoft Windows 2000 Professional Edition
    • Microsoft Windows 2000 Server
    • Microsoft Windows NT Server 4.0 Standard Edition
    • Microsoft Windows NT Server 4.0, Terminal Server Edition
    • Microsoft Windows NT Workstation 4.0 Developer Edition
    • Microsoft Windows Millennium Edition
    • Microsoft Windows 98 Second Edition
    • Microsoft Windows 98 Standard Edition
  • Microsoft Internet Explorer 6.0, when used with:
    • Microsoft Windows XP Home Edition
    • Microsoft Windows XP Professional
    • Microsoft Windows XP Media Center Edition
    • Microsoft Windows XP Tablet PC Edition
    • Microsoft Windows XP Professional x64 Edition
    • Microsoft Windows 2000 Advanced Server
    • Microsoft Windows 2000 Datacenter Server
    • Microsoft Windows 2000 Professional Edition
    • Microsoft Windows 2000 Server
    • Microsoft Windows NT Server 4.0 Standard Edition
    • Microsoft Windows NT Server 4.0, Terminal Server Edition
    • Microsoft Windows NT Workstation 4.0 Developer Edition
    • Microsoft Windows Millennium Edition
    • Microsoft Windows 98 Second Edition
    • Microsoft Windows 98 Standard Edition
  • Microsoft Internet Explorer 5.5 Service Pack 2
  • Microsoft Internet Explorer 5.01
Keywords: 
kbprb KB814458

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com