Answers for "that link to button"

5

buton html href

<!-- if you are on Window : --> 
<button onclick="window.location.href='page2.html'">
  Button
</button>

<!-- if you are on linux or macOS : -->
<button onclick="location.href='page2.html'">
  Button
</button>
Posted by: Guest on April-25-2020
1

href in button

<input type="button" onclick="location.href='https://google.com';" value="Go to Google" />
Posted by: Guest on December-27-2020

Code answers related to "that link to button"

Browse Popular Code Answers by Language