how to change a website url in javascript(simple) code example Example: js change url window.location.href = "www.google.com";