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.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a string variable that receives the destination URL or anchor point.
This method retrieves the href property of the A object.
IHTMLAnchorElement::put_href
HRESULT put_href( BSTR v );Sets the destination URL or anchor point.
- Returns S_OK if successful, or an error value otherwise.
- 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.
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.