This is an experimental technology
Because this technology's specification has not stabilized, check the compatibility table for usage in various browsers. Also note that the syntax and behavior of an experimental technology is subject to change in future versions of browsers as the specification changes.
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. |
Working 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 | ? |