title: Loading .txt file into textarea Javascript?
body: <p>I was trying to get the text file into textarea. The result is "<a href="http://mywebsite.com/textfile/(txtinput).txt">http://mywebsite.com/textfile/(txtinput).txt</a> and the text file doesn't load into textarea.</p>
  
  <pre><code>&lt;html&gt;
     &lt;head&gt;
        &lt;title&gt;textbox&lt;/title&gt;
        &lt;script type="text/javascript"&gt;
           function readBOX() {
              var txtinput = document.getElementById('txtinput').value;
              document.forms[0].text.value = ("http://mywebsite.com/textfile/") + txtinput +(".txt");
           }
        &lt;/script&gt;
     &lt;/head&gt;
     &lt;body&gt;
        &lt;p&gt; Type&lt;/p&gt;
        &lt;input type="text" id="txtinput" /&gt;
        &lt;input id="open" type="button" value="READ" onClick="readBOX()" /&gt;
        &lt;form&gt;
           &lt;textarea name="text" rows="20" cols="70"&gt;loaded text here&lt;/textarea&gt;
        &lt;/form&gt;
     &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>