Answers for "how to use button as link in html"

29

html button link

<button><a href='https://google.com' alt='Broken Link'>This is a button</a></button>
Posted by: Guest on February-02-2020
1

html button click url

# Wrap whole button in a 'a' tag.
 <a href="https://google.com" class="button"><button class="pixel">Button text</button></a>
Posted by: Guest on October-25-2020
2

html button with href

<form method="get" action="/page2">
    <button type="submit">Continue</button>
</form>
Posted by: Guest on June-03-2020
0

button with href

onClick={() => {window.location.href="https://www.golfballs.com/"}}
Posted by: Guest on August-05-2020

Browse Popular Code Answers by Language