title: how to remove query string arrays from url in javascript
body: <p>I am getting problem in removing query string arrays from the URL.</p>
  
  <p>This is my URL - </p>
  
  <p>In Chrome, it displays in the given format - </p>
  
  <pre><code>Var url = "http://mywebsite.com/innovation?agenda%5B%5D=4995&amp;agenda%5B%5D=4993#ideaResult";
  </code></pre>
  
  <p>Whereas, in mozilla it displays in this format - </p>
  
  <pre><code> http://mywebsite.com/innovation?agenda[]=4995&amp;agenda[]=4993#ideaResult
  </code></pre>
  
  <p>I want to remove the particular query paramter. </p>
  
  <p>Suppose I want to remove "4995" then final URL should supposed to be like this-</p>
  
  <pre><code>http://mywebsite.com/innovation?agenda[]=4993#ideaResult
  </code></pre>
  
  <p>Please help.</p>