title: Can javascript display text of any external file with any extension?
body: <p>Lets consider that I have a text file named <strong>text.txt</strong>. So, now I made a file named <strong>showtext.html</strong> in which I have to write javascript such that it can display the text present in <strong>text.txt</strong>. I assume it would be like :</p>
  
  <p>Text ( text.txt )</p>
  
  <pre><code> Show me up !
  </code></pre>
  
  <p>HTML ( showtext.html )</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;body&gt;
  &lt;script&gt;
     var src = "text.txt";
     document.write( value.get( src ) );
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Output of showtext.html</p>
  
  <pre><code>Show me up !
  </code></pre>
  
  <p>In, the above function the <strong>value.get()</strong> gets and then writes the value of the text.txt. So, can javascript really do such ? How can I make the <strong>value.get()</strong> ? Will it support only <strong>.txt</strong> extension or can support any custom extension ? Or this can only be done with PHP ?</p>