M Kh
0
Q:

redirect to html page in javascript

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

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

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

 
3

New to Communities?

Join the community