javascript redirect another page
snippet in javascript

javascript redirect another page

user9533

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

javascript redirect page

user6076

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

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