<button onclick="window.location.href='/page2'">Continue</button>
<a href="https://google.com" class="button">Go to Google</a> //*button link *//
<form method="get" action="/page2"> <button type="submit">Continue</button> </form>
onClick={() => {window.location.href="https://www.golfballs.com/"}}
a.button { -webkit-appearance: button; -moz-appearance: button; appearance: button; text-decoration: none; color: initial; }
<a href="https://google.com" class="btn btn-primary">Go to Google</a>
<button onclick="location.href='http://www.example.com'" type="button"> www.example.com</button>