Submit.handleEvent() : submit button : Form JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Form » submit button »

 

Submit.handleEvent()









Syntax








submit.handleEvent(event)



The handleEvent() method invokes the handler for the event specified.












<html>
    <head>
    <script language="JavaScript1.2">
    <!--
    var counter = 0;
    window.captureEvents(Event.CLICK)
    window.onClick = myClickHandler;
    function myClickHandler{
      window.document.myForm.mySubmit.handleEvent;
    }
    function changeText(){
      counter++;
      document.myForm.myText.value = counter;
      return false;
    }
    -->
    </script>
    </head>
    <body>
    <form name="myForm">
      <input type=TEXT size=value="" name="myText">
      <input type=SUBMIT value="Submit" name="mySubmit" onClick='changeText()'>
    </form>
    </body>
    </html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Form
» submit button