go to another page javascript
snippet in javascript

go to another page javascript

user6424

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

javascript redirect page

user6199

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

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

redirect with javascript

user564

window.location.replace('http://mywebsite.com/home.html');

javascript howdo i redirect-to another webpage

user9446

window.location = "https://example.com/";