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

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

© 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