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?
No. You can change the #hashstring
, but changing the query string results in a reload.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With