Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

add url query in js

const urlParams = new URLSearchParams(window.location.search);

urlParams.set('order', 'date');

window.location.search = urlParams;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #add #url #query #js
ADD COMMENT
Topic
Name
5+2 =