html javascript redirect
snippet in javascript

html javascript redirect

user765

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

javascript redirect page

user5950

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

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