W3cubDocs

/DOM

HTMLLinkElement.referrerPolicy

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 ? ? 50.0 (50.0) ? ? ?
Feature Android Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support ? 50.0 (50.0) ? ? ?

See also

© 2005–2017 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