Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get query params from url javascript

const queryString = window.location.href;
const parameters = new URLSearchParams(queryString);
const value = parameters.get('key');
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #query #params #url #javascript
ADD COMMENT
Topic
Name
7+7 =