We help IT Professionals succeed at work.

Can JavaScript detect a 301 redirection?

hankknight
hankknight asked
on
756 Views
Last Modified: 2012-05-08
http://www.example.com/
    links to:
http://www.301.com/ 
    and
http://www.301.com/ 
    redirects the browser to
http://www.mysite.com/ 

document.referrer returns http://www.example.com/ as the referrer.

Is there any way for JavaScript in http://www.mysite.com/ to detect that the visitor actually came from http://www.301.com/ ?
Comment
Watch Question

IT Expert
CERTIFIED EXPERT
Top Expert 2009
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.