history pushstate javascript code example
Example 1: javascript window.history.pushState
window.history.pushState("http://example.ca", "Sample Title", "/example/path.html");
Example 2: history.pushstate
history.pushState(state, title[, url])
window.history.pushState("http://example.ca", "Sample Title", "/example/path.html");
history.pushState(state, title[, url])