HTMLIFrameElement: allow property

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2020.

The allow property of the HTMLIFrameElement interface indicates the Permissions Policy specified for this

js
const el = document.getElementById("el");
console.log(el.allow); // Output: "geolocation 'self' https://a.example.com https://b.example.com; fullscreen 'none'"

See Permissions Policy in \n\n

js
const el = document.getElementById(\"el\");\nconsole.log(el.allow); // Output: \"geolocation 'self' https://a.example.com https://b.example.com; fullscreen 'none'\"\n\n

See Permissions Policy in