Textarea.handleEvent() : TextArea : Form JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Form » TextArea »

 

Textarea.handleEvent()







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.myTextArea.handleEvent;
    }
    function changeText(){
      document.myForm.myTextArea.value = counter++;
    }
    -->
    </script>
    </head>
    <body>
    <form name="myForm">
      <textarea name="myTextArea" rows=cols=50 onClick='changeText()'>
      Here is some text in my text area.
      </textarea>
    </form>
    </body>
    </html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Form
» TextArea