title: Is it possible to pass GET or POST variable to external javascript
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/4790119/is-it-possible-to-pass-get-or-post-variable-to-external-javascript">Is it possible to pass GET or POST variable to external javascript</a>  </p>
  </blockquote>
  
  
  
  <p>I am wondering whether is it possible to pass any variable to <strong>external</strong> java-script file</p>
  
  <p><strong>For example</strong></p>
  
  <p>I have <strong>this</strong></p>
  
  <pre><code>&lt;script type="text/javascript" src="gallery.js"&gt;&lt;/script&gt; 
  </code></pre>
  
  <p><strong>I'd like to know</strong> if it's possible to pass an argument to that script file, and if so, how  do I read it in the external file? Something like this perhaps:???</p>
  
  <pre><code>&lt;script type="text/javascript" src="myscript.js?id=123"&gt;&lt;/script&gt; 
  </code></pre>
  
  <p><strong>Thank you</strong></p>