How To Link A HTML Button
By Form Submission
The plain HTML way is to put it in a <form>
wherein you specify the desired target URL in the action
attribute.
<br><form action="https://google.com"> <input type="submit" value="Go to Google" /> </form>
JavaScript
If JavaScript is allowed, set the window.location.href
.
<button onclick="location.href='http://www.google.com'" type="button"> www.google.com</button>
Simple Link By A Tag
<a href="https://google.com" class="btn btn-primary">Google</a>