What\'s the difference between clicking on:
vs.
calling window.location.href = ...
window.location.href = ...
?
document.referrer contains a reference on the server and client to the url of the page that contained the link the user clicked to get to the new page- scripted location methods do not.