javascript window url without being in direct history code example Example: javascript change url history.pushState({}, null, newUrl);