title: cross site scripting using script tag ,change src of a script tag, can we use id for script tag
body: <pre><code>&lt;body&gt;
  &lt;!-- some html code --&gt;
  
  &lt;script src='some.js'&gt;&lt;/script&gt;
  
  &lt;!-- some html code --&gt;
  
  &lt;/body&gt;
  </code></pre>
  
  <p>The script some.js loads a form.
  when i press update in that form i do not submit the form instead i form a query string and want to send it as
  some.js?key=value</p>
  
  <p>Now i need to change the src of the script tag.</p>
  
  <p>If we change the src will it work by again requesting a new content?
  Can we use ID for script tag and if so will it be supported by all browsers?</p>
  
  <p>when the new content is received i will clear the old content displayed by this script.
  i think it is better to have a div and put all the contents inside that div.
  i am rewriting script.js to script.php in my htaccess just show the users that it is just a javascript access or no problem for me if i give a .php.</p>
  
  <p>The above is the basic requirement.</p>
  
  <p>What we need is just to use a script tag which will fetch content from another site and should update here.</p>
  
  <p>you can give suggestions to use this in a standard way which will included updating the content from the x site.</p>
  
  <p>so this is what people tell as cross site scripting, on demand javascript and please add more terminologies if any so that i will update myself.</p>
  
  <p>any kind of response will do good.</p>