[js] Parse get params in javascript
Published on 09.05.2014
Simple function for parsing get params in browser to js object
var getDict = {}; location.search.substr(1).split("&").forEach(function(item) {getDict[item.split("=")[0]] = item.split("=")[1]});