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 GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
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.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Siehe auch
- Fullscreen-API
Element.requestFullscreen()
- Permissions Policy
fullscreen
Permissions Policy directive