how to change url without reloading page in js code example Example: js change url window.location.href = "www.google.com";