Magazine |
| | Community |
| | Workshop |
| | Tools & Samples |
| | Training |
| | Site Info |
|
|
||||||||
|
Sets or retrieves the security domain of the document.
Syntax
HTML N/A Scripting document.domain [ = sDomain ]
Possible Values
sDomain String specifying the domain suffix. The property is read/write with no default value.
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 would initially not be able to communicate with each other. However, by setting the domain property of both pages to the suffix, microsoft.com, both pages would be considered secure and access would be available between the pages.
Applies To
HTML N/A Scripting document
Does this content meet your programming needs? Write us!
© 1998 Microsoft Corporation. All rights reserved. Terms of use.