IHTMLAreaElement::get_targetIHTMLAreaElement::get_target*
*Contents  *Index  *Topic Contents
*Previous Topic: IHTMLAreaElement::get_tabIndex
*Next Topic: IHTMLAreaElement::put_alt

IHTMLAreaElement::get_target


HRESULT get_target(
    BSTR *p
);

Retrieves the target window or frame.

p
Address of a string variable that receives the target window or frame. Can be one of the following 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.

Up Top of Page


IHTMLAreaElement::put_target


HRESULT put_target(
    BSTR v
);

Sets the target window or frame.

v
String value specifying the target window or frame. Can be one of the following special 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


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