CWebView::GoHome Method  
 
BOOL GoHome();

The GoHome method navigates to the current home URL if one has been specified.

Parameters

None.

Return Value

If the method succeeds, the return value is non-zero. If the method fails, the return value is zero. To get extended error information, call the GetLastError method.

Remarks

The GoHome method navigates the browser to the home URL previously assigned using SetHomeUrl. The navigation is performed using the same default options and behavior as a call to Navigate.

A newly created browser instance does not have a default home URL, even if its initial document is about:blank. The application must explicitly assign a home URL using SetHomeUrl before calling this method. If no home URL has been assigned, the method fails with ST_ERROR_INVALID_URL_SCHEME.

Navigation to the home URL is asynchronous. A successful return value indicates that the navigation request was accepted, not that the document has finished loading. Applications can use the WebView navigation and document loading events to monitor the progress and completion of the request.

Requirements

Minimum Desktop Platform: Windows 7 Service Pack 1
Minimum Server Platform: Windows Server 2008 R2 Service Pack 1
Header File: cstools12.h
Import Library: cshtmv12.lib

See Also