Answers for "how to push the get variables without page reloading in Jquery"

1

how to push the get variables without page reloading in Jquery

const url = new URL(window.location.href);
url.searchParams.set('param1', 'val1');
url.searchParams.delete('param2');
window.history.replaceState(null, null, url); // or pushState
Posted by: Guest on September-16-2021

Code answers related to "how to push the get variables without page reloading in Jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language