Posted by: webmaster | Comments Off on DJ Mix Archive

DJ Mix Archive

var getQueryString = function ( field, url ) {
var href = url ? url : window.location.href;
var reg = new RegExp( ‘[?&]’ + field + ‘=([^&#]*)’, ‘i’ );
var string = reg.exec(href);
return string ? string[1] : null;
};

var thisOne = getQueryString(‘coupon’); // returns ‘chicken’

No Comments