Replaces the current document by loading another document at the specified URL.
Syntaxvar retval = location.replace(bstr);
- bstr [in]
String that specifies the URL to insert into the session history.
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
There are no standards that apply here.
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.
Build date: 11/17/2013