Answers for "how to navigate to html page in javascript"

7

js onclick redirect

<button onclick="location.href='www.yoursite.com'">Click Me</button>
Posted by: Guest on June-16-2020
50

javascript redirect

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

Code answers related to "how to navigate to html page in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language