title: Submit form and return result to same page with javascript
body: <p>Im trying to write a small js script that will let a user input a string of text and then output it wrapped in some html to the page. </p>
  
  <p>I know how to do this with php, but it seems a little bit of an overkill for such a simple action, plus im always keen to learn something new.</p>
  
  <p>I was playing around using <code>document.myform.submit();</code> but i wasnt sure how to submit the form value to a variable and then output that var to the screen using <code>document.write();</code></p>
  
  <p>Any ideas how i would do this ?</p>
  
  <p>Ive created a jsfiddle of the problem here - <a href="http://jsfiddle.net/pudle/axcLz/" rel="nofollow">http://jsfiddle.net/pudle/axcLz/</a></p>