title: Redirection to a specific web page based on URL parameter using Javascript
body: <p>I have a simple .htm web page kept in different folders for handling different languages. </p>
  
  <p>default.htm inside en folder (<strong>en\default.htm</strong>  and <strong>de\default.htm</strong> and so on) </p>
  
  <p>I need to redirect to a specific web page based on the URL parameter i.e. if the user had </p>
  
  <p>specified <code>http://localhost/website/default.htm?lang=de</code>, i need to redirect him to the </p>
  
  <p><strong>de\default.htm</strong> file. i.e. a german web page. </p>
  
  <p>had it been the ASPX pages i would have done away with the job easily with ResourceManager </p>
  
  <p>and an appropriate .resx file using the <strong>Request.QueryString</strong> option provided by .NET </p>
  
  <p>BCL. However since i'm using plain HTML page i do not have an  expertise to write a client </p>
  
  <p>side script like javascript to query for the URL parameters and redirect the user to the </p>
  
  <p>required page.</p>
  
  <p><strong>Question :</strong> </p>
  
  <p>Can anyone guide me how do i achieve the same using any form of client scripting to </p>
  
  <p>achieve the redirection ?? And where do i invoke the script function ? </p>
  
  <p>i.e query the parameter for each post event.??</p>
  
  <p>Thanks a ton </p>