Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js get variable from url

var queryDict = {};
location.search.substr(1).split("&").forEach(function(item) {queryDict[item.split("=")[0]] = item.split("=")[1]})
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #variable #url
ADD COMMENT
Topic
Name
6+4 =