on button click redirect to another page javascript code example
Example 1: js onclick redirect
<button onclick="location.href='www.yoursite.com'">Click Me</button>
Example 2: javascript redirect
window.location.href = "http://mywebsite.com/home.html";