Obtaining the URL of the Referring DocumentUse this snippet to obtain the URL which referred the user to that page. Be aware that on some servers this may not work.
Simply click inside the window below, use your cursor to highlight the script, and copy [Control]+C the script into a new file in your text editor (such as Note Pad) and save [Control+S]. The script is yours!!!