You need to sign in to do that
Don't have an account?
Richa K
Get the URL of the previous page
Hi,
I am using document.referrer to get the URL of the previous page visited.
But IE has issues with document.referrer. Any one have any idea, how we can get the URL of the previous page in IE.
Thanks,
Shailesh
To some extent this depends on how you arrived at the second page - IE tends not to fill in the referer when the navigation was controlled by javascript (setting the location.href, for example). The workaround that crops up a lot is to append a link to the DOM via javascript and click that.
There's more information at: http://webbugtrack.blogspot.com/2008/11/bug-421-ie-fails-to-pass-http-referer.html