Document.featurePolicy

La propriété en lecture seule featurePolicy de l'interface Document retourne l'interface FeaturePolicy, qui fournit une API permettant de consulter facilement les règles de fonctionnalités appliquées sur un document spécifique.

Syntaxe

js
var policy = iframeElement.featurePolicy;

Valeur

Un objet FeaturePolicy pouvant être utilisé pour consulter les paramètres de Feature Policy appliqués au document.

Spécifications

No specification found

No specification data found for api.Document.featurePolicy.
Check for problems with this page or contribute a missing spec_url to mdn/browser-compat-data. Also make sure the specification is included in w3c/browser-specs.

Compatibilité des navigateurs

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
featurePolicy
Experimental

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support
Experimental. Expect behavior to change in the future.
User must explicitly enable this feature.