Answers for "redirect to new route in js"

50

js redirect

window.location.href = "http://mywebsite.com/home.html";
Posted by: Guest on July-18-2019
3

js redirect

window.location.href = "https://your_website.php/page2.php;
// to remove actual address from the history:
window.location.replace = "https://your_website.php/page2.php;
Posted by: Guest on November-02-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language