12-23-2022, 05:00 AM
function getParam(name,url)
{
if(!url)url = location.href;
name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
var regexS = "[\\?&]"+name+"=([^&#]*)";
var regex = new RegExp( regexS );
var results = regex.exec(url);
if( results == null )
return "";
else
return results[1];
}
var Years = getParam("Year",referrer);
alert(Years);
{
if(!url)url = location.href;
name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
var regexS = "[\\?&]"+name+"=([^&#]*)";
var regex = new RegExp( regexS );
var results = regex.exec(url);
if( results == null )
return "";
else
return results[1];
}
var Years = getParam("Year",referrer);
alert(Years);