window.location.href = "https://www.google.com"
window.location = url;
window.location.href = "http://example.com/new_url";