function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Richa KRicha K 

Get the URL of the previous page



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.





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: