grg
0
Q:

href on a button

<button onclick="window.location.href='/page2'">Continue</button>
2
<a href="https://google.com" class="button">Go to Google</a> //*button link *//
0
<form method="get" action="/page2">
    <button type="submit">Continue</button>
</form>
2
onClick={() => {window.location.href="https://www.golfballs.com/"}}
0
a.button {
    -webkit-appearance: button;
    -moz-appearance: button;
    appearance: button;

    text-decoration: none;
    color: initial;
}
0
<a href="https://google.com" class="btn btn-primary">Go to Google</a>
-2
<button onclick="location.href='http://www.example.com'" type="button">
         www.example.com</button>
-1

New to Communities?

Join the community