At the moment i’m trying to make a new script that is based on the last visited website of the user. If last visited website is x, then it needs to redirect to another page.
Example:
User clicks on a link on my Facebook fan-page and lands on the homepage. The Javascript now needs to take an action and redirect the user to another page. But only if the user came from http://facebook.com/%5Bfanpage%5D
Is it possible to create something like this in Javascript?
Thanks a lot,
You could use
document.referrerlike this: