a link inside a button javascript code example
Example 1: button href
<a href="https://google.com" class="button">Go to Google</a> //*button link *//
Example 2: html button with href
<form method="get" action="/page2">
<button type="submit">Continue</button>
</form>