JavaScript window.location does not set referer in the request header
Your post title shows that you want to change the current page programmatically using JavaScript but still having the HTTP referrer provided (from what I understood, using a <a> tag is just for a test case). You need to be aware of cross-browser issues: The HTTP referrer header (HTTP-Referer) is set when changing window.location.href under … Read more