Baseline Widely available
The sandbox
read-only property of the HTMLIFrameElement
interface returns a DOMTokenList
indicating extra restrictions on the behavior of the nested content.
It reflects the sandbox
attribute of the <iframe>
element.
A DOMTokenList
. Each item must be one of the tokens listed in the sandbox
attribute of the <iframe>
element.
<iframe
id="el"
title="example"
src="https://example.com"
sandbox="allow-same-origin allow-scripts"></iframe>
const el = document.getElementById("el");
console.log(Array.from(el.sandbox)); // Output: ["allow-same-origin", "allow-scripts"]
el.sandbox = "";
console.log(Array.from(el.sandbox)); // Output: []
Specifications Browser compatibility
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4