HTMLIFrameElement: allowFullscreen プロパティ

Limited availability

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

allowFullscreenHTMLIFrameElement インターフェイスのプロパティで、<iframe> 要素の allowfullscreen 属性を反映する論理値であり、この iframe のコンテンツが requestFullscreen() を使用することを許可するかどうかを示します。

メモ: このプロパティは古いプロパティとみなされています。allow="fullscreen" および HTMLIFrameElement.allow を代わりに使用してください。

論理値です。

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

仕様書

Specification
HTML
# dom-iframe-allowfullscreen

ブラウザーの互換性

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.

関連情報