title: convert javascript array into textarea
body: <p>just teaching myself javascript and im trying to get my code to read in inputs from the user and then print them out into a text area but i have been unsuccessful thus far.</p>
  
  <p>so far im just using the alert just to test that my code is storing the input in the array i ve set.</p>
  
  <pre><code>&lt;HTML&gt;
    &lt;HEAD&gt;
      &lt;TITLE&gt;Test Input&lt;/TITLE&gt;
      &lt;SCRIPT LANGUAGE="JavaScript"&gt;
      var TestVar = new Array();
  
      var i = 0;
      function testResults (form) {
          TestVar[i] = form.inputbox.value;
          alert ("You typed: " + TestVar[1]);
          i++;
  
      }
      &lt;/SCRIPT&gt;
    &lt;/HEAD&gt;
    &lt;BODY&gt;
      &lt;FORM NAME="myform" ACTION="" METHOD="GET"&gt;Enter a name into the box: &lt;BR&gt;
        &lt;INPUT TYPE="text" NAME="inputbox" VALUE=""&gt;&lt;P&gt;
        &lt;INPUT TYPE="button" NAME="button" Value="Click"
         onClick="testResults(this.form)"&gt;
  
        &lt;form name="myform" action="" method="POST"&gt;
          &lt;div align="center"&gt;
  
          &lt;textarea cols="40" rows="5" name="output"&gt;'Now we are inside the area - which is nice.' this.TestVar[i];&lt;/textarea&gt;
        &lt;/FORM&gt;
    &lt;/BODY&gt;
  &lt;/HTML&gt;
  </code></pre>
  
  <p>I know its basic, but i cant seem to get it right, thanks for any help givin.</p>