Answers for "how to redirect javascript on click"

21

js onclick redirect

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

javascript redirect button

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

Code answers related to "how to redirect javascript on click"

Browse Popular Code Answers by Language