IHTMLDocument2::get_domainIHTMLDocument2::get_domain*
*



Contents  *



Index  *Topic Contents
*Previous Topic: IHTMLDocument2::put_domain
*Next Topic: IHTMLDocument2::put_cookie

IHTMLDocument2::get_domain


HRESULT get_domain(
    BSTR *p
);

Retrieves or the security domain of the document.

p
Address of a string variable that receives the security domain.

The domain property initially returns the hostname of the server that the page is from. This 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 now code can access between the pages.

See also put_domain

Up Top of Page


IHTMLDocument2::put_domain


HRESULT put_domain(
    BSTR v
);

Sets or returns the security domain of the document.

v
String specifying the security domain.

The domain property initially returns the host name of the server the page is from. This 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 now code can be shared between the pages.

See also get_domain


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.