This is an experimental technologyCheck the Browser compatibility table carefully before using this in production.
The featurePolicy
read-only property of the HTMLIFrameElement
interface returns the FeaturePolicy
interface which provides a simple API for introspecting the feature policies applied to a specific frame.
Syntax
var policy = HTMLIFrameElement.featurePolicy
Value
A FeaturePolicy
object that can be used to inspect the Feature Policy settings applied to the frame.
Specification
Specification | Status | Comment |
Permissions Policy | Editor's Draft | Initial definition. |
Browser compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Update compatibility data on GitHub
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Chrome Full support 74 Full support 74 Notes' Chrome Platform Status incorrectly describes this variable as Disabled' From version 73 until version 74 (exclusive): this feature is behind the Alternate Name' Uses the non-standard name: |
Edge Full support 79 Full support 79 Notes' Edge Platform Status incorrectly describes this variable as |
Firefox Full support 69 Full support 69 Disabled' From version 69: this feature is behind the Alternate Name' Uses the non-standard name: |
IE
No support No |
Opera Full support 62 Full support 62 No support 60 — 62 Disabled' From version 60 until version 62 (exclusive): this feature is behind the Alternate Name' Uses the non-standard name: |
Safari
No support No |
WebView Android Full support 74 Full support 74 Notes' Chrome Platform Status incorrectly describes this variable as |
Chrome Android Full support 74 Full support 74 Notes' Chrome Platform Status incorrectly describes this variable as Disabled' From version 73 until version 74 (exclusive): this feature is behind the Alternate Name' Uses the non-standard name: |
Firefox Android Full support 65 Full support 65 Alternate Name' Uses the non-standard name: |
Opera Android Full support 48 Full support 48 Alternate Name' Uses the non-standard name: |
Safari iOS
No support No |
Samsung Internet Android
Full support 11.0 |
Legend
- Full support
- Full support
- No support
- No support
- Experimental. Expect behavior to change in the future.'
- Experimental. Expect behavior to change in the future.
- See implementation notes.'
- See implementation notes.
- User must explicitly enable this feature.'
- User must explicitly enable this feature.
- Uses a non-standard name.'
- Uses a non-standard name.
HTMLIFrameElement.featurePolicy by Mozilla Contributors is licensed under CC-BY-SA 2.5.