javascript get value of paragraph to appear in textarea
<p>I'm trying to add the value of a paragraph to a text area using javascript. This is my code at the moment. I can't quite seem to get it to work. Any help is appreciated</p>

<pre><code>  &lt;html&gt;
  &lt;head&gt;
   &lt;/head&gt;
  &lt;body&gt;
  &lt;button value="this is a length definition" onclick="reveal(this.value)"&gt; hi&lt;/button&gt;
  &lt;script type="text/javascript"&gt;
  function reveal(value)
  {
  var text = value;
  document.outputtext.value += value;
  }
  &lt;/script&gt;
  &lt;table&gt;
  &lt;tr&gt;
  &lt;td&gt;&lt;textarea name="outputtext"&gt;&lt;/textarea&gt;&lt;/td&gt;
  &lt;/tr&gt;&lt;/table&gt;
  &lt;/body&gt;
  &lt;/html&gt;
</code></pre>
