IHTMLAnchorElement::get_hrefIHTMLAnchorElement::get_href*
*



Contents  *



Index  *Topic Contents
*Previous Topic: IHTMLAnchorElement::get_hostname
*Next Topic: IHTMLAnchorElement::get_Methods

IHTMLAnchorElement::get_href


HRESULT get_href(
    BSTR *p
);

Retrieves the destination URL or anchor point.

p
Address of a string variable that receives the destination URL or anchor point.

This method retrieves the href property of the A object.

Up Top of Page


IHTMLAnchorElement::put_href


HRESULT put_href(
    BSTR v
);

Sets the destination URL or anchor point.

v
String value specifying the destination URL or anchor point.

The HREF attribute on the anchor is a scriptable attribute. HREFs on anchors can jump to bookmarks or any element's id attribute.


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