Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js get location params

Object.fromEntries(location.search.substr(1).split("&").map(pair => pair.split("=")))
 
PREVIOUS NEXT
Tagged: #js #location #params
ADD COMMENT
Topic
Name
2+1 =