Sponsered Links
Categories
Sponsered Links

JavaScript Form submit button

 

 This is a simple JavaScript Form submit button example. The Submit object is located at window.document.Form.Submit.

 <html>

    <head>
    <script language="JavaScript">
    function openWin(){
      var myInstance = document.myForm.mySubmit;
      var myWin = open("""""width=400, height=250");
      myWin.document.write("Button name is: " + myInstance.name + "<br>");
      myWin.document.write("Button type is: " + myInstance.type + "<br>");  
      myWin.document.write(myInstance.form.mySubmit.value);
      myWin.document.close();
    }
    </script>
    </head>
    <body>
    <form name="myForm">
      <input type=TEXT value="Hello, World!" name="myText">
    <input type=SUBMIT value="Click to Submit the Form" name="mySubmit" onClick="openWin()">
    </form>
  </body>
</html>

 
 
Sponsered Links
Latest Updates
 
All Content of this site is for learning only. We do not warrant the correctness of its content. The risk from using it lies entirely with the user. While using this site, you agree to have read and accepted our terms of use and privacy policy.
Copyright © 2009 JSPSERVLETTUTORIAL.INFO All Right Reserved