title: Calling a js script from php doesn't work
body: <p>I'm trying to 'call' a function stored in my .js file from a .php page using this : </p>
  
  <pre><code>echo "&lt;script&gt;myFunction(arg1, arg2)&lt;/script&gt;";
  </code></pre>
  
  <p>and it just doesn't go though. But it works when I use html instead :</p>
  
  <pre><code>&lt;script&gt;myFunction(arg1, arg2)&lt;/script&gt;
  </code></pre>
  
  <p>I'll probably feel stupid when you'll provide me with the answer but I just don't get it.
  Thanks!</p>
  
  <p>EDIT: sorry, more details. The function pops an alert dialog, and I'm calling it <strong>when the page just got loaded</strong></p>