redirect to html page in javascript
snippet in javascript

redirect to html page in javascript

user9749

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

redirect javascript url

user5284


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

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