add parameter to url without reload jquery code example
Example: add parameter to url without reload jquery
var refresh = window.location.protocol + "//" + window.location.host + window.location.pathname + '?arg=1';
window.history.pushState({ path: refresh }, '', refresh);