JSFiddle - React, Tailwind, and code Playground
by realhunts
JavaScript
function goTo(page, title, url) {
if ("undefined" !== typeof history.pushState) {
history.pushState({page: page}, title, url);
} else {
window.location.assign(url);
}
}
setTimeout(()=>{
window.history.pushState({page: "another"}, "another page", "https://www.babylonjs-playground.com/");
goTo("another page", "example", 'example.html');
}, 5000)