windowhistorypushState
The Window.history.pushState() method in web development is used to add a new state to the browser's session history. This method allows developers to change the URL displayed in the browser's address bar without actually reloading the page. It is a key component of implementing single-page applications (SPAs) and creating dynamic web experiences where navigation can occur without a full page refresh.
When pushState() is called, it takes three arguments: a state object, a title (which is often ignored
Using pushState() does not trigger a page reload, which is crucial for maintaining the user's current state