Replaces the current document by loading another document at the specified URL.
HRESULT replace( BSTR bstr );
- [in] BSTR that specifies the URL to insert into the session history.
Returns S_OK if successful, or an error value otherwise.
When a document is replaced, it is also removed from the history object. Moreover, the user interface navigation methods, such as the Back and Forward buttons, will no longer access the URL.