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