Return the referrer of the current document:
The result of x will be:
The referrer property returns the URL of the document that loaded the current document.
Property | |||||
---|---|---|---|---|---|
referrer | Yes | Yes | Yes | Yes | Yes |
Return Value: | A String, representing the URL of the document that loaded the current document. Returns the entire URL, including the protocol (like http://). If the current document was not opened through a link (for example, through a bookmark), an empty string is returned. |
---|---|
DOM Version | Core Level 2 Document Object |