referrerreferrer*
*Contents  *Index  *Topic Contents
*Previous Topic: recordset
*Next Topic: rel

referrer

Description

Specifies the URL of the previous location.

Syntax

object.referrer

Remarks

This is only true when the current page has been reached through a link from the previous page. Otherwise, document.referrer will return empty; it will also return empty when the link is from a secure site.

For example, if PageA.htm has a link to PageB.htm, and the user clicks the link on PageA.htm to go to PageB.htm, the document.referrer on PageB.htm will return "PageA.htm". However, if the user is on PageA.htm and types PageB.htm into the address line, or uses Open in the File menu to get to PageB.htm, the document.referrer will return empty.

This property has read-only permission, meaning you can retrieve its current value, but not change it.

Applies To

document


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.