Replaces the current document by loading the document at the specified URL.
Syntax
location.replace(sURL)
Parameters
sURL Required. String that specifies the URL to insert into the session history.
Return Value
No return value.
Remarks
Replacing a document causes it to be inaccessible through the history object. Also, the URL is no longer accessible through the user interface navigation methods, such as the Back and Forward buttons.
Applies To