method Location.prototype.replacereplace(url: string): voidRemoves the current page from the session history and navigates to the given URL. Removes the current page from the session history and navigates to the given URL. Disabled in Deno. Parametersurl: stringReturnsvoid