title: How can I add a parameter to my url, without reload the page?
body: <p>I have this url <code>http://localhost:1234/pag1</code></p>
  
  <p>I want to be like below when I click on the div:</p>
  
  <pre><code> http://localhost:1234/pag1?fare=standar
  </code></pre>
  
  <p>and I have an onclick event function:</p>
  
  <pre><code> &lt;div id="" onclick="addUrl();"&gt; &lt;/div&gt;
  </code></pre>
  
  <p>And the js code:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
   function addUrl() {
      var url = window.location.href;
      window.location.hash = '?fare=standar';
  };
      &lt;/script&gt;
  </code></pre>
  
  <p>This give me this result:</p>
  
  <pre><code>http://localhost:1234/pag1#?fare=standar
  </code></pre>
  
  <p>And I don't Know how to remove the (#). I only need to add the parameter to the url, without refresh the page. </p>
  
  <p>Suggest me! Thank's.</p>