IHTMLImgElement::href Property

Retrieves the entire IHTMLDocument2::URL that the browser uses to locate the image or video clip associated with the element.

Syntax


HRESULT IHTMLImgElement::get_href(BSTR *p);

Parameters

p
Pointer to a BSTR that receives the URL.

Return Value

Returns S_OK if successful, or an error value otherwise.

Community Additions

Show: