Javascript redirect but keep the referer, possible?

jiajilah

Junior Member
Joined
Jun 6, 2008
Messages
144
Reaction score
115
Is there a way to do this?
Trying hard and search for an hour but still no luck.
Now turning back to BHW :D
Please advice, thanks!
 
Got my question answered.

Set a cookie and call it back.

document.cookie = "realreferrer="+encodeURIComponent(document.referrer)+"; path=/";

if (realreferrer.length > 0) {
pageTracker._setReferrerOverride(realreferrer);
}
 
Back
Top