Stop reload when using window.location
<p>On click of a button I am changing <code>window.location.href</code>, i.e. I am adding one query string parameter. This causes the page to be refreshed (as I am changing <code>window.location.href</code>).
I want to know is it possible to stop this page refresh and append the query string in the url?</p>
