Location.replace - Web documentation
method Location.replace
Location.replace(url: string): void

Removes the current page from the session history and navigates to the given URL.

Disabled in Deno.

Parameters

url: string

Return Type

void