javascript page redirect on btn click 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";
<button onclick="location.href='www.yoursite.com'">Click Me</button>
window.location.href = "http://mywebsite.com/home.html";