Im designing a website where I want each page to display a trail of crumbs, that is all the pages that the user went through to get to the current one. It would look something like
In other words, I want each page that is linked to, to be able to display the name of the page that referred to that page. I have tried using document.referrer, but I dont get anything.
What am I doing wrong and what should I do to make this work?