You can use document.referrer to get the referring page or get it in the server-side but that's not reliable. Another alternative is to set the
window.name property from website A then check it in website B. That property is persistent accross windows regardless of domain.
website A:
Code:
var marker = "websiteBreferrer:";
window.name = marker+location.href;
alert(window.name);
website B:
Code:
alert(window.name);
var marker = "websiteBreferrer:";
if (window.name.indexOf(marker)==0){ //make sure it's the first string
alert("The user came from "+window.name.substring(marker.length));
//...
}
The caveat of this is if javascript is disabled, you won't be able to track it and NS4 doesn't allow invalid characters in window.name.