Click to return to the Reusing Browser Technology home page    
IHTMLDocument2::get_ready...     IHTMLDocument2::get_scrip...     IHTMLDocument2 Interface    
Web Workshop  |  Reusing Browser Technology

IHTMLDocument2::get_referrer Method


Retrieves the URL of the previous location.

Syntax

HRESULT get_referrer(
    BSTR *p
);

Parameters

p
Address of a string variable that receives the URL.

Return Value

Returns S_OK if successful, or an error code otherwise.

Remarks

The property returns a value only when the current page has been reached through a link from the previous page. Otherwise, the get_referrer call returns empty; it also returns empty when the link is from a secure site.

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.