Some jQuery considerations on Thursday
jQuery function to get URL parameter:
function getURLParameter(name) {
return decodeURI(
(RegExp(name + '=' + '(.+?)(&|$)').exec(location.search)||[,null])[1]
);
}
Here is the jQuery to get document referrer base name:
function getReferrerBase() {
url = document.referrer;
ref = url.match(/:\/\/(.[^/]+)/)[1];
return ref;
}
…
tags: & category: -