javascript href button code example
Example 1: html button with href
<form method="get" action="/page2">
<button type="submit">Continue</button>
</form>
Example 2: button with href
onClick={() => {window.location.href="https://www.golfballs.com/"}}