javascript redirect button
snippet in javascript

javascript redirect button

user4247

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

redirect javascript

user215


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

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