Revision: 58722
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at July 30, 2012 17:25 by maceblue
Initial Code
// make GET-Params accessible in JS (function(){ window.getparams = {}; var s = window.location.search.substring(1).split('&'); if(!s.length) return; for(var i = 0; i < s.length; i++) { var parts = s[i].split('='); window.getparams[unescape(parts[0])] = unescape(parts[1]); } }()) //use: window.getparams['id']
Initial URL
Initial Description
get paramt
Initial Title
get params in JS
Initial Tags
Initial Language
JavaScript