js redirect to url

JavaScript
// similar behavior as an HTTP redirect
window.location.replace("http://stackoverflow.com");

// similar behavior as clicking on a link
window.location.href = "http://stackoverflow.com";window.location.href = "http://mywebsite.com/home.html";<script>
  window.location.href = "http://mywebsite.com/home.html";
</script>window.location.replace('http://mywebsite.com/home.html');window.location = "https://example.com/";window.open("http://mywebsite.com/home.html")
Source

Also in JavaScript: