The history.replaceState() method

As this page is loaded, two alerts are made. The first shows history.state before configuring the state manually using history.replaceState() and the second shows history.state after the configuration.