js redirect to another page
snippet in javascript

js redirect to another page

user9408

window.location.href = "http://mywebsite.com/home.html";

javascript redirect page

user9389

// Simulate a mouse click:
window.location.href = "http://www.w3schools.com";

// Simulate an HTTP redirect:
window.location.replace("http://www.w3schools.com");