IHTMLBaseElement::href Property

Gets or sets the baseline URL on which relative links are based.

Syntax


HRESULT IHTMLBaseElement::get_href(BSTR *p);HRESULT IHTMLBaseElement::put_href(BSTR v);

Parameters

p
Pointer to a variable of type BSTR that receives the URL.
v
BSTR that specifies the URL.

Return Value

Returns S_OK if successful, or an error value otherwise.

Community Additions

Show: