code javascript open page replace code example Example: js change url window.location.href = "www.google.com";