HTMLIFrameElement: allowFullscreen-Eigenschaft

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Die allowFullscreen-Eigenschaft des HTMLIFrameElement-Interfaces ist ein boolescher Wert, der das allowfullscreen-Attribut des <iframe>-Elements widerspiegelt und angibt, ob die Inhalte des iframes requestFullscreen() verwenden dürfen.

Hinweis: Diese Eigenschaft gilt als veraltet. Verwenden Sie stattdessen allow="fullscreen" und HTMLIFrameElement.allow.

Wert

Ein boolescher Wert.

Beispiele

html
<iframe id="el" allowfullscreen></iframe>
js
const el = document.getElementById("el");
console.log(el.allowFullscreen); // Output: true

Spezifikationen

Specification
HTML
# dom-iframe-allowfullscreen

Browser-Kompatibilität

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
allowFullscreen

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
Partial support
Partial support
Uses a non-standard name.
Has more compatibility info.

Siehe auch