You are here: Reference > JavaScript > client-side > HTML DOM > properties > referrer (document, XMLDocument)
referrer property (document, XMLDocument)
Retrieves the URL of the document that loaded the current page.
This property returns information about the location where the user has navigated from to the current page.
Syntax:
You can find the related objects in the Supported by objects section below.
This property is read-only.
Possible values:
String that retrieves the location of the document that has linked to the current page. If the current document was not opened through a link, the referrer property returns an empty string.
Default: this property has no default value.
Supported by objects:
External links:
User Contributed Comments