Widely Available
id: iframe-sandbox
Sandboxed iframes
The
sandbox attribute for the <iframe> HTML element sets many security restrictions on the iframe, such as preventing form submissions or opening modal dialogs. Optional allow- values relax specific restrictions.
Baseline Status:
Achieved Widely Available on Jan 29, 2018 (Cross-browser Newly Available since Jul 29, 2015).
Desktop Browser Engine Support
Google Chrome
5
Supported
Mozilla Firefox
17
Supported
Apple Safari
5
Supported
Microsoft Edge
12
Supported
Mobile Browser Engine Support
Chrome Android
18
Firefox Android
17
Safari iOS
4
Specifications and References
MDN Browser Compat Data Keys:
api.HTMLIFrameElement.sandbox ↗
html.elements.iframe.sandbox ↗
html.elements.iframe.sandbox.allow-downloads ↗
html.elements.iframe.sandbox.allow-forms ↗
html.elements.iframe.sandbox.allow-modals ↗
html.elements.iframe.sandbox.allow-popups ↗
html.elements.iframe.sandbox.allow-popups-to-escape-sandbox ↗
html.elements.iframe.sandbox.allow-same-origin ↗
html.elements.iframe.sandbox.allow-scripts ↗
html.elements.iframe.sandbox.allow-top-navigation ↗
html.elements.iframe.sandbox.allow-top-navigation-by-user-activation ↗
html.elements.iframe.sandbox.allow-top-navigation-to-custom-protocols ↗