Click to return to the Reusing Browser Technology home page    
IHTMLAnchorElement::get_p...     IHTMLAnchorElement::get_r...     IHTMLAnchorElement Interf...    
Web Workshop  |  Reusing Browser Technology

IHTMLAnchorElement::get_rel Method


Retrieves the relationship(s) described by the hypertext link from the anchor to the target.

Syntax

HRESULT get_rel(
    BSTR *p
);

Parameters

p
Address of a string (BSTR) variable that receives the relationship(s). This parameter receives a comma-separated list of relationship values. For details, see the rel property.

Return Value

Returns S_OK if successful, or an error code otherwise.

Remarks

The default relationship, if no other is given, is void. The rel property is used only when the href property is present.

Windows CE

Windows CE Use version 2.12 and later
Minimum availability Internet Explorer 4.0

IHTMLAnchorElement::put_rel Method


Sets the relationship(s) described by the hypertext link from the anchor to the target.

Syntax

HRESULT put_rel(
    BSTR v
);

Parameters

v
String (BSTR) value that specifies the relationship(s) to set. This parameter is a comma-separated list of relationship values. For details, see the rel property.

Return Value

Returns S_OK if successful, or an error code otherwise.

Remarks

The default relationship, if no other is given, is void. The rel property is used only when the href property is present.

Windows CE

Windows CE Use version 2.12 and later
Minimum availability Internet Explorer 4.0


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.