files/en-us/web/api/htmlareaelement/referrerpolicy/index.md
{{APIRef("HTML DOM")}}
The
HTMLAreaElement.referrerPolicy
property reflect the HTML referrerpolicy attribute of the
{{HTMLElement("area")}} element defining which referrer is sent when fetching the
resource.
A string; one of the following:
no-referrer
no-referrer-when-downgrade
origin
https://example.com/page.html will send the referrer
https://example.com/.origin-when-cross-origin
same-origin
strict-origin
strict-origin-when-cross-origin (default)
unsafe-url
<map id="my-map" name="my-map"></map>
const elt = document.createElement("area");
elt.href = "/img2.png";
elt.shape = "rect";
elt.referrerPolicy = "no-referrer";
elt.coords = "0,0,100,100";
const map = document.getElementById("my-map");
map.appendChild(elt);
// When clicked, the area's link will not send a referrer header.
{{Specifications}}
{{Compat}}