Answers for "how to redirect my page to another page in javascript"

7

js onclick redirect

<button onclick="location.href='www.yoursite.com'">Click Me</button>
Posted by: Guest on June-16-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 "how to redirect my page to another page in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language