Miki
0
Q:

redirect to another page javascript

window.location.href = "http://mywebsite.com/home.html";
34
<script>
  window.location.href = "http://mywebsite.com/home.html";
</script>
12
// Simulate a mouse click:
window.location.href = "http://www.w3schools.com";

// Simulate an HTTP redirect:
window.location.replace("http://www.w3schools.com");
4
window.location.replace('http://mywebsite.com/home.html');
9
window.location.href = "http://example.com/new_url";
0
window.location = "https://example.com/";
3

New to Communities?

Join the community