Prop Doc Referrer
# HTML DOM referrer Property
[ Document Object](#)
* * *
## Definition and Usage
The referrer property returns the URL of the document that loaded the current document.
If the current document was not accessed via a hyperlink, it is null. This property allows client-side JavaScript to access the HTTP Referer header.
## Syntax
document.referrer
* * *
## Browser Support

All major browsers support the referrer property.
* * *
## Example
## Example
Return the URL of the document that loaded the current document:
The referrer of this document is:
document.write(document.referrer);
[Try it Yourself Β»](#)
* * Document Object](#)
YouTip