history.replaceState(): This replaces the current history entry with new state data and URL. The user cannot navigate back to the replaced entry, effectively removing it from the user's experience.