Simone
0
Q:

html submit button

  <input type="submit" value="Submit">
9
<!DOCTYPE html>
<html>
  <head>
    <title>Title of the document</title>
  </head>
  <body>
    <p>There is a hidden message for you. Click to see it.</p>
    <button onclick="myFunction()">Click me!</button>
    <p id="demo"></p>
    <script>
      function myFunction() {
        document.getElementById("demo").innerHTML = "Hello Dear Visitor!</br> We are happy that you've chosen our website to learn programming languages. We're sure you'll become one of the best programmers in your country. Good luck to you!";
      }
    </script>
  </body>
</html>
17
<form action="/action_page.php">
  <label for="fname">First name:</label><br>
  <input type="text" id="fname" name="fname" value="John"><br>
  <label for="lname">Last name:</label><br>
  <input type="text" id="lname" name="lname" value="Doe"><br><br>
  <input type="submit" value="Submit">
</form>
2
<button type="submit" form="form1" value="Submit">Submit</button>
1
<html>
<form action= "your site" method = "post/get">
  </form>
</html>
  
5
  <label for="fname">First name:</label><br>
  <input type="text" id="fname" name="fname"><br>
1
<input type="submit">
1
<!-- put this line of code inside of your input -->
 onchange="this.form.submit()

<!-- EXAMPLE -->

      <input type="checkbox" onchange="this.form.submit()">
0

New to Communities?

Join the community