IHTMLBaseElement

IHTMLBaseElement


This interface specifies the document's base URL. The base URL is used to ensure that your document is not reviewed out of context.

This element can be used only within the HEAD tag.

IHTMLBaseElement Methods
get_href   get_target  
put_href   put_target  

IHTMLBaseElement::get_href

HRESULT get_href(
    BSTR *p
);

Retrieves the document's full URL in case the document gets read out of context and the reader wants to refer to the original.

p
Address of a string variable that receives the base URL.

See also put_href

IHTMLBaseElement::get_target

HRESULT get_target(
    BSTR *p
);

Retrieves the window or frame at which to target the contents.

p
Address of a string variable that receives the target, or one of these values:
_blank Specifies to load the link into a new blank window. This window is not named.
_parent Specifies to load the link into the immediate parent of the document the link is in.
_self Specifies to load the link into the same window the link was clicked in.
_top Specifies to load the link into the full body of the window.

If there is no frame or window that matches the specified target, a new window is opened for the link.

The default value for the target depends upon the URL and site. If the user does not leave the site, the default is _self, but if the user exits to a new site, the default is _top.

See also put_target

IHTMLBaseElement::put_href

HRESULT put_href(
    BSTR v
);

Sets the document's full URL in case the document gets read out of context and the reader wants to refer to the original.

v
String specifying the base URL.

See also get_href

IHTMLBaseElement::put_target

HRESULT put_target(
    BSTR v
);

Sets the window or frame at which to target the contents.

v
String value that specifies the target. Can be one of these values:
_blank Specifies to load the link into a new blank window. This window is not named.
_parent Specifies to load the link into the immediate parent of the document the link is in.
_self Specifies to load the link into the same window the link was clicked in.
_top Specifies to load the link into the full body of the window.

If there is no frame or window that matches the specified target, a new window is opened for the link.

The default value for the target depends upon the URL and site. If the user does not leave the site, the default is _self, but if the user exits to a new site, the default is _top.

See also get_target

© 1997 Microsoft Corporation. All rights reserved. Terms of Use.