Click to return to the DHTML, HTML     
recordset Property     REL Attribute | rel Prope...     DHTML Properties    
Web Workshop  |  DHTML, HTML & CSS

referrer Property


Retrieves the URL of the location that referred the user to the current page.

Syntax

HTMLN/A
Scripting [ sUrl = ] document.referrer

Possible Values

sUrlString that specifies the URL of the referring page.

The property is read-only with no default value.

Remarks

This property returns a value only when the user reaches the current page through a link from the previous page. Otherwise, document.referrer returns an empty string; it also returns an empty string when the link is from a secure site.

For example, if PageA.htm includes a link to PageB.htm, and the user clicks that link, the document.referrer on PageB.htm returns "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 returns an empty string.

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
HTML N/A
Scripting document


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.