CWebView::GoBack Method  
 
BOOL GoBack();

The GoBack method navigates backwards through the browser history.

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 GetLastError.

Remarks

The GoBack method navigates the browser to the previous page in its session history, if one is available. This is equivalent to selecting the Back button in a standard web browser. If there is no previous entry in the history list, the method will succeed but no navigation will occur. The availability of backward navigation can be determined by handling the WEBVIEW_EVENT_HISTORY_CHANGED event and checking for the WEBVIEW_MOVE_BACKWARD_ENABLED flag.

Calling ClearHistory will remove the session history for the browser instance. After the history has been cleared, calling GoBack will have no effect until new pages have been visited.

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