Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Internet Explorer 6.0 document.domain Property Does Not Function as You Expect


View products that this article applies to.

Symptoms

When you try to set the domain property for two Web pages to the same suffix to allow viewers to see each page in a separate frame on your Web page, the two Web pages do not communicate as you expect, or you may receive Access Denied script errors when you use cross-frame scripting.

↑ Back to the top


For security reasons, Internet Explorer 6 Service Pack 1 enforces security checks about the document.domain property.

↑ Back to the top


Resolution

To use cross frame scripting with Internet Explorer 6 Service Pack 1, you must apply the following rules :
  • Set document.domain on all the pages that must communicate with other pages that also set the document.domain property.
  • Do not use the domain name that you perceive on the client side to set the document.domain property. If a site must use the document.domain property, set that property to a fixed known-good value, for example, document.domain = mysite.com. In other words, do not set the document.domain property based on the value at the client, which may be mysite.untrusted.com.
  • When you set the document.domain property, the new domain must be different from the current domain. Otherwise, the change does not have the correct effect.

↑ Back to the top


Status

This behavior is by design.

↑ Back to the top


Properties

Retired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.

↑ Back to the top


Keywords: KB813819, kbbug, kbfix, kbie600presp2fix, kbie600sp2fix

↑ Back to the top

Article Info
Article ID : 813819
Revision : 3
Created on : 5/30/2003
Published on : 5/30/2003
Exists online : False
Views : 394