Answers for "javascript redirect alter"

1

javascript change url without redirect

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

javascript redirect

<script>
  window.location.href = "http://mywebsite.com/home.html";
</script>
Posted by: Guest on April-13-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language