Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js get query param

const queryString = window.location.search;
const parameters = new URLSearchParams(queryString);
const value = parameters.get('key');
 
PREVIOUS NEXT
Tagged: #js #query #param
ADD COMMENT
Topic
Name
3+9 =