Security & Privacy
sandbox="allow-popups-to-escape-sandbox"
Prevents the frame's sandbox restrictions from propagating to auxiliary contexts it is permitted to open. This does not independently grant popup creation; use cautiously for trusted outbound workflows. A space-separated token list on iframe. An empty sandbox imposes the full sandbox restrictions; each token removes a particular restriction, not all restrictions. This inert srcdoc demonstrates syntax only, not the granted capability.
Formal Syntax & Structure
html syntaxhtml
sandbox="allow-popups-to-escape-sandbox"Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| sandbox | space-separated token list | Prevents the frame's sandbox restrictions from propagating to auxiliary contexts it is permitted to open. This does not independently grant popup creation; use cautiously for trusted outbound workflows. |
Working Example
Example Snippethtml
<iframe title="Isolated example" sandbox="allow-popups-to-escape-sandbox" srcdoc="<p>Embedded content</p>"></iframe>Browser Compatibility
Minimum supported versions across modern rendering engines
Chrome
46
Yes
Firefox
49
Yes
Safari
11.1
Yes
Checked desktop BCD snapshot: iframe sandbox token allow-popups-to-escape-sandbox. Versions denote the recorded start of support (≤ means at least that early), not a guarantee of all behavior. Unresolved mirror and preview rows omitted. Token support does not guarantee permission to perform the action in every context.
HTML Living Standard