On click of a button I am changing window.location.href, i.e. I am adding one query string parameter. This causes the page to be refreshed (as I am changing window.location.href).
I want to know is it possible to stop this page refresh and append the query string in the url?
On click of a button I am changing window.location.href , i.e. I am adding
Share
No. You can change the
#hashstring, but changing the query string results in a reload.