The javascript document.referrer can be used to glean the URL of the calling page. This is clearly useful in implementing certain kinds of "back" button.
This script also uses the javascript today variable to retrieve the time.