YouTip LogoYouTip

Prop Doc Referrer

# HTML DOM referrer Property [![Image 8: Document Object Reference](#) 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 ![Image 9: Internet Explorer](#)![Image 10: Firefox](#)![Image 11: Opera](#)![Image 12: Google Chrome](#)![Image 13: Safari](#) 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](#)
← Met Node HasattributesProp Doc Readystate β†’