Click to return to the DHTML, HTML     
removeRule Method     replaceAdjacentText Metho...     DHTML Methods    
Web Workshop  |  DHTML, HTML & CSS

replace Method


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

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:

location



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.