HTMLIFrameElement: allowFullscreen プロパティ
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
allowFullscreen は HTMLIFrameElement インターフェイスのプロパティで、<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> |
ブラウザーの互換性
Loading…
関連情報
- 全画面 API
Element.requestFullscreen()- 権限ポリシー
fullscreen権限ポリシーディレクティブ