asp.net.ph

Skip Navigation Links

replace Method

DHTML Methods


Replaces the current document by loading the document at the given URL.

Syntax

location.replace ( "sURL" ) 
Parameters

sURL Required. String specifying the URL to insert into the session history.

Return Value

No return value.

Remarks

Replacing a document causes it to no longer be accessible through the history object. Also, the URL is no longer accessible through the user interface navigation methods ( like the Back and Forward buttons ).

Applies To

location



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note