Answers for "how to change url through javascript"

3

js change url

window.location.href = "www.google.com";
Posted by: Guest on May-07-2020
1

java script change url without reload

window.history.replaceState({}, '','/dashboard');
Posted by: Guest on October-09-2020
3

javascript change url

history.pushState({}, null, newUrl);
Posted by: Guest on March-20-2020

Code answers related to "how to change url through javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language