method Location.replace Private 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