Answers for "jquery add parameter to current url and reload"

0

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);
Posted by: Guest on May-16-2021
0

add parameter at the end of url from jquery with refreshing

window.history.replaceState(null, null, "?arg=123");
Posted by: Guest on December-21-2021

Code answers related to "jquery add parameter to current url and reload"

Code answers related to "Javascript"

Browse Popular Code Answers by Language