title: How to pass parameters to a Script tag?
body: <p>I read the tutorial <a href="https://web.archive.org/web/20080720015427/http://drnicwilliams.com/2006/11/21/diy-widgets/" rel="noreferrer">DIY widgets - How to embed your site on another site</a> for XSS Widgets by Dr. Nic.  </p>
  
  <p>I'm looking for a way to pass parameters to the script tag. For example, to make the following work:</p>
  
  <pre><code>&lt;script src="http://path/to/widget.js?param_a=1&amp;amp;param_b=3"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>Is there a way to do this?</p>
  
  <hr>
  
  <p>Two interesting links:</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/2170439/how-to-embed-javascript-widget-that-depends-on-jquery-into-an-unknown-environment">How to embed Javascript widget that depends on jQuery into an unknown environment</a> (Stackoverflow discussion)</li>
  <li><a href="http://feather.elektrum.org/book/src.html" rel="noreferrer">An article on passing parameters to a script tag</a></li>
  </ul>