document.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])