how to redirect a button to another page in js code example
Example: js onclick redirect
<button onclick="location.href='www.yoursite.com'">Click Me</button>
<button onclick="location.href='www.yoursite.com'">Click Me</button>