I have a website with projects that appear in multiple categories and I need a way for users to go back to the previous page they were on. But as this could be multiple pages, I cant hard-code the navigation, so I need to use a JavaScript history back.
Is there a jQuery version that can check they haven't come from an external source like Google. And if they go to the page direct (there is no history), is there a way to check that and then serve up a different link like 'Back to Projects', rather than just 'Back'?
Thanks in advance.