Textarea.value : TextArea : Form JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Form » TextArea »

 

Textarea.value







The value property returns the current value of the text area.












<html>
    <head>
    <script language="JavaScript">
    <!--
    function resetText(){
      document.myForm.myTextArea.value = document.myForm.myTextArea.defaultValue;
    }
    -->
    </script>
    </head>
    <body>
    <form name="myForm">
      <textarea name="myTextArea" rows=cols=50>
      Here is some text in my text area.
      </textarea>
      <input type=BUTTON value="Reset" name="myButton" onClick='resetText()'>
    </form>
    </body>
    </html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Form
» TextArea