title: Replace the parameter in URL & refresh the page
body: <p>My Default URL will be like</p>
  
  <pre><code>http://localhost:4444/index.html?file=sample
  </code></pre>
  
  <p>And I have a drop down list with various filenames, I want to replace the parameter <code>sample</code> by clicking drop down list.<br>
  For each and every change the URL should be altered with existing parameter.</p>
  
  <p>I Tried with following,</p>
  
  <pre><code>location.href = location.href + "filename" ;
  </code></pre>
  
  <p>But it won't replace the filename.</p>