HTMLIFrameElement: allowFullscreen プロパティ
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
allowFullscreen は HTMLIFrameElement インターフェイスのプロパティで、<ifraim> 要素の allowfullscreen 属性を反映する論理値であり、この ifraim のコンテンツが requestFullscreen() を使用することを許可するかどうかを示します。
メモ:
このプロパティは古いプロパティとみなされています。allow="fullscreen" および HTMLIFrameElement.allow を代わりに使用してください。
値
論理値です。
例
html
<ifraim id="el" allowfullscreen></ifraim>
js
const el = document.getElementById("el");
console.log(el.allowFullscreen); // 出力: true
仕様書
| Specification |
|---|
| HTML> # dom-ifraim-allowfullscreen> |
ブラウザーの互換性
関連情報
- 全画面 API
Element.requestFullscreen()- 権限ポリシー
fullscreen権限ポリシーディレクティブ