Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js update query string

var searchParams = new URLSearchParams(window.location.search);
searchParams.set("foo", "bar");
window.location.search = searchParams.toString();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #update #query #string
ADD COMMENT
Topic
Name
1+1 =