I want to capture the values which proceeds 'tsid' from the below URL using javascript so in this case it would be '11693' is there a way to do this?
www.foo.co.uk/search/clothing/c:29131/?ashd=AR422&_$ja=tsid:11693%7Cprd:%7Ccat:AR422
I want to capture the values which proceeds 'tsid' from the below URL using javascript so in this case it would be '11693' is there a way to do this?
www.foo.co.uk/search/clothing/c:29131/?ashd=AR422&_$ja=tsid:11693%7Cprd:%7Ccat:AR422
You goona use PHP get values and seperate them with this function.
function getUrlVars() {
var vars = {};
var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value) {
vars[key] = value;
});
return vars;
}