Submit.onClick : submit button : Form JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Form » submit button »

 

Submit.onClick







The onClick event handler is fired when a submit button is clicked.












<html>
    <head>
    <script language="JavaScript">
    <!--
    function setText(){
      document.myForm.myText.value = document.myForm.myText.value.toUpperCase();
    }
    -->
    </script>
    </head>
    <body>
    <form name="myForm">
    Please Enter some text and click the Submit Button.<br>
      <input type=TEXT value="Enter Text Here" name="myText">
      <input type=BUTTON value="Submit" name="mySubmit" onClick="setText()">
    </form>
    </body>
    </html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Form
» submit button