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