location.replace()

Availability

BlackBerry Device Software version 4.6 or later

The replace() method replaces the current web page with the web page at the given URL. This method differs from Location.assign() in that when the old URL is replaced, it is not saved in the History list. As a result, the user will have no way to navigate back to it.

Syntax

location.replace( URL )

Parameters

Parameter

Type

Description

URL

String

The URL to replace the current URL with.

Return values

None.

Exceptions

None.

Last modified: 2013-08-14