Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #push #variables #page #reloading #Jquery
ADD COMMENT
Topic
Name
8+6 =