replace Method

MS Office 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:
Version data is listed when the mouse hovers over a link, or the link has focus.

location


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? write us!Internet Link

© 1999 microsoft corporation. all rights reserved. terms of useInternet Link.