title: Can I pass a parameter directly to a .js file, and how do I get the value
body: <p>I want to pass a parameter to some javascript using a single line of code, like this:</p>
  
  <pre><code>&lt;script language="JavaScript" src="courselist.js?subj=MATH" type="text/javascript" /&gt;
  </code></pre>
  
  <p>Inside the javascript file, how can I get the value of the parameter "subj"?</p>
  
  <p>Thanks</p>