How can do the same function in javascript that is document.location.pathname - except with the referrer? so something like document.referrer.pathname?
Thanks.
No, you can only extract needed part manually:
document.referrer.replace(/^[^:]+:\/\/[^/]+/, '').replace(/#.*/, '')