title: How to Display output of php file though pure javascript ?
body: <p>I have a simple PHP file hello.php which display 'hello world' message like this</p>
  
  <pre><code>&lt;?php
         echo "Hello world!";
  ?&gt;
  </code></pre>
  
  <p>I want to store this message in javascript variable. how i can do this ?</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
     var result= // output returned from hello.php
     alert(result);
  &lt;/script&gt;
  </code></pre>