HTML DOM referrer Property
Clash Royale CLAN TAG#URR8PPP
<!--
main_leaderboard, all: [728,90][970,90][320,50][468,60]-->
HTML DOM referrer Property
❮ Document Object
Example
Return the referrer of the current document:
var x = document.referrer;
The result of x will be:
document.write(document.referrer);
Definition and Usage
The referrer property returns the URL of the document that loaded the current document.
Browser Support
Property | |||||
---|---|---|---|---|---|
referrer | Yes | Yes | Yes | Yes | Yes |
Syntax
document.referrer
Technical Details
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 |
❮ Document Object