browser javascript update url without changing history code example Example: browser javascript update url without changing history window.history.replaceState({}, '', href);