how to redirect to page in javascript onclick 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";