To use this script on your own page, click in the text area below, select all, and copy to grab the script. Then, just paste into your own page — and you're done.
See it run: Working with Referrer Pages
The HTML page for the referrer page example.
The JavaScript code that allows you to work with referrer pages.