in reply to
Recalling the URL of initiating page
I use DOCUMENT_URI, just to second the above.
Comment on
Re: Recalling the URL of initiating page
In Section
Seekers of Perl Wisdom