W3cubDocs

/DOM

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.
Candidate Recommendation

Browser compatibilityUpdate compatibility data on GitHub

Desktop
Chrome Edge Firefox Internet Explorer Opera Safari
Basic support 51 No 50 No 38 11.1
Mobile
Android webview Chrome for Android Edge Mobile Firefox for Android Opera for Android iOS Safari Samsung Internet
Basic support 51 51 No 50 38 No ?

See also

© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/referrerPolicy