|Subject:||Re: Redirect someone from a referring domain to a webpage|
|Date:||Thu, 4 Dec 2003|
It looks OK. If you do an alert of document.referrer, do you see what you
Does this help?
You should convert the referrer to lower (or upper) case before attempting
"Paul Lee" <pa…@paullee.com> wrote in message
> Hi all,
> I'm trying to redirect users from a specific domain to one of my
> So, in my example, anyone accessing my index.html from the
> *btinternet.com domain (allowing for wildcards!) will be redirected to
> I'm not bothered what the referring webpage was, I'm just interested
> anyone accessing my page from a certain domain
> This is what I have:
> function redirect()
> previousDomain = document.referrer
> if(previousDomain.indexOf("btinternet.com") > -1)
> <BODY bgcolor="FFFFFF" TEXT="000000" LINK="00FF00"
> but it doesn't want to work.... what have I done wrong?
> Best wishes
Redirect someone from a referring domain to a webpage posted by pa…@paullee.com (Paul Lee) on 4 Dec 2003