View Single Post
Old 12-18-2009, 12:04 AM  
ztik
Confirmed User
 
ztik's Avatar
 
Industry Role:
Join Date: Aug 2001
Location: Nomad
Posts: 5,196
javascript redirect based on referral url

I used to have this code, I tried recoding it myself but I suck, google also sucks

Anyone have this code handy?

If ref url = aol.com then newurl=google.com

this is kind of close

if (document.referrer != "") {
var referringURL = document.referrer;
var local = referringURL.substring(referringURL.indexOf("?"), referringURL.length);
location.href = "http://page.com/login" + local;
}
__________________
.
ztik is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote