Skip to content Skip to sidebar Skip to footer

Document.referrer Issue On Ie When The Requests Doesn't Come From A Link

Possible Duplicate: IE has empty document.referrer after a location.replace Hi there, I have got an issue on using the document.referrer property in IE. When I get to a page not

Solution 1:

Store the old page url in a cookie.

Or add the referer to the url in the fragment identifier.

location.href = 'page.html' + '#' + location.href

Or create a link on the fly with javascript, and call it's .click(). So something like

var a = document.createElement('a');
a.href='page.html';
document.body.appendChild(a);//not sure if this is needed
a.click();

Post a Comment for "Document.referrer Issue On Ie When The Requests Doesn't Come From A Link"