The Referer header allows a server to identify referring pages that people are visiting from or where requested resources are being used. This data can be used for analytics, logging, optimized caching, and more., The DOM referrer property in HTML is used to return the URI of the page that linked to the current page. If the user navigates to the page directly or through a bookmark, then this value is an empty string. Syntax: document.referrer. The below program illustrates the referrer property in HTML:, In HTML5, the link type noreferrer (link to W3C HTML5 CR) can be used: It indicates that no referrer information is to be leaked when following the link., Learn about the Document.referrer property, including its type, code examples, specifications, and browser compatibility., The referrer property returns the URL of the document that loaded the current document. The referrer property is read-only., .