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.
DOMString HTMLLinkElement.referrerPolicy
var links = document.getElementsByTagName("link"); links[0].referrerPolicy; // "no-referrer"
Specification | Status | Comment |
---|---|---|
Referrer Policy The definition of 'referrerPolicy attribute' in that specification. | Editor's Draft |
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 | ? |
Referrer-Policy
HTMLAnchorElement.referrerPolicy
HTMLAreaElement.referrerPolicy
HTMLIFrameElement.referrerPolicy
HTMLImageElement.referrerPolicy
© 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