Document.referrer

Returns the URI of the page that linked to this page.