Answers for "how to get my button to go to a link in html"

4

add link behind a button in html

<!DOCTYPE html>
<html>
   <head>
      <title>Title of the document</title>
   </head>
   <body>
      <form>
         <input type="button" onclick="window.location.href = 'https://www.w3docs.com';" value="w3docs"/>
      </form>
   </body>
</html>
Posted by: Guest on May-13-2020
0

button href

<a href="https://google.com" class="button">Go to Google</a> //*button link *//
Posted by: Guest on June-25-2020

Code answers related to "how to get my button to go to a link in html"

Browse Popular Code Answers by Language