Textarea.onChange : TextArea : Form JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Form » TextArea »

 

Textarea.onChange







The onChange event handler is fired when the text in the area is modified.












<html>
    <head>
    <script language="JavaScript">
    <!--
    function changeBack(){
      document.myForm.myTextArea.value = document.myForm.myTextArea.defaultValue;
    }
    -->
    </script>
    </head>
    <body>
    <form name="myForm">
      <textarea name="myTextArea" rows=cols=50 onChange='changeBack()'>
      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