Answers for "redirect to different url in javascript"

1

javascript change url without redirect

window.history.pushState("", "", '/newpage');
Posted by: Guest on October-12-2020
50

javascript redirect to url

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

Code answers related to "redirect to different url in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language