Answers for "how to set url to button in html"

0

button as href

<button onclick="location.href='http://www.example.com'" type="button">
         www.example.com</button>
Posted by: Guest on October-20-2020
2

html button with href

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

Code answers related to "how to set url to button in html"

Browse Popular Code Answers by Language