replace method
The replace()
method of the Location
interface replaces the current resource with the one at the provided URL.
The difference
from the Location.assign method is that after using
replace()
the current page will not be saved in session History,
meaning the user won't be able to use the back button to navigate to it.
Implementation
external void replace(String url);