Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

replace method

Replaces the current document by loading another document at the specified URL.

Syntax


HRESULT retVal = object.replace(bstr);

Parameters

bstr [in]

Type: BSTR

BSTR that specifies the URL to insert into the session history.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Standards information

There are no standards that apply here.

Remarks

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.

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.