Answers for "how to open a page with a button 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
1

how to add button to open a website using html

<button onclick="window.open('http://www.example.com')">
</button>
Posted by: Guest on February-24-2021
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 open a page with a button in html"

Browse Popular Code Answers by Language