javascript change displayed url code example Example: javascript change url history.pushState({}, null, newUrl);