javascript pushstate 1

javascript pushstate

window.history.pushState("http://example.ca", "Sample Title", "/example/path.html");

Here is what the above code is Doing:
1. The first line is creating a new history entry.
2. The second line is changing the URL in the address bar.
3. The third line is changing the title of the page.

Similar Posts