title: How to switch between 2 javascript files
body: <p>I just wonder if it possible to change/ switch between 2 javascript files in a web page ?
  If user choose the EN language from my site then the file alljavaforEN.js will be activated.
  But
  If user choose the FR language from my site then the file alljavaforFR.js will be activated</p>
  
  <p>I´m so sorry if my question is too simple. But I have been search in google I have not found any tutrials. Possibly I use wrong keywords ?</p>
  
  <p>However what I did here is </p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  
  Function changeLanguage (lang) {
  if (lang=="fr"){///Do something to activate this &lt;script type="text/javascript" src="alljavaforFR.js"&gt;&lt;/script&gt;}
  
  if (lang=="en"){ //Do something to activate this &lt;script type="text/javascript" src="alljavaforEN.js"&gt;&lt;/script&gt;}
  
  }
  &lt;/head&gt;
  &lt;body&gt;
    &lt;a href="#" onclick="changeLanguage('en');"&gt; Change to English&lt;/a&gt;
    &lt;a href="#" onclick="changeLanguage('fr');"&gt; Change to French&lt;/a&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>