Revision: 25219
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at March 23, 2010 15:28 by digiteyes
Initial Code
function getQuerystring(key, default_) { if (default_==null) default_=""; key = key.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]"); var regex = new RegExp("[\\?&]"+key+"=([^&#]*)"); var qs = regex.exec(window.location.href); if(qs == null) return default_; else return qs[1]; }
Initial URL
Initial Description
Initial Title
Retrieve Query String Variables Javascript
Initial Tags
javascript, query
Initial Language
JavaScript