HTMLLinkElement.referrerPolicy

This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The HTMLLinkElement.referrerPolicy property reflect the HTML referrerpolicy attribute of the <link> element defining which referrer is sent when fetching the resource.

See the HTTP Referrer-Policy header for details.

Syntax

DOMString HTMLLinkElement.referrerPolicy

Example

var links = document.getElementsByTagName("link");
links[0].referrerPolicy; // "no-referrer"

Specifications

Specification Status Comment
Referrer Policy
The definition of 'referrerPolicy attribute' in that specification.
Editor's Draft  

Browser compatibility

Feature Chrome Edge Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support 58 ? 50.0 (50.0) ? 45 ?
Feature Android Webview Chrome for Android Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support 58 58 50.0 (50.0) ? 45 ?

See also

Document Tags and Contributors

 Contributors to this page: jpmedley, valtlai, fscholz
 Last updated by: jpmedley,