Baseline Widely available
Die sandbox
-Eigenschaft (nur lesbar) des HTMLIFrameElement
Interface gibt eine DOMTokenList
zurück, die zusätzliche Einschränkungen für das Verhalten des verschachtelten Inhalts angibt.
Sie spiegelt das sandbox
-Attribut des <iframe>
-Elements wider.
Eine DOMTokenList
. Jedes Element muss einer der im sandbox
-Attribut des <iframe>
-Elements aufgeführten Token sein.
<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: []
Spezifikationen Browser-Kompatibilität MDN-Feedback-Box War diese Ãbersetzung hilfreich?
Diese Seite wurde automatisch aus dem Englischen übersetzt.
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