Click to return to the DHTML, HTML     
documentElement Property     dropEffect Property     DHTML Properties    
Web Workshop  |  DHTML, HTML & CSS

domain Property


Sets or retrieves the security domain of the document.

Syntax

HTMLN/A
Scriptingdocument.domain [ = sDomain ]

Possible Values

sDomainString that specifies the domain suffix.

The property is read/write with no default value.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see Dynamic Properties.

Remarks

The property initially returns the host name of the server the page is served from. The property can be assigned the domain suffix to allow sharing of pages across frames. For example, a page in one frame from home.microsoft.com and a page from www.microsoft.com initially would not be able to communicate with each other. However, by setting the domain property of both pages to the suffix "microsoft.com", both pages are considered secure and access is available between the pages.

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
HTML N/A
Scripting document


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.