このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docsコミュニティーについてもっと知り、仲間になるにはこちらから。
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 を代わりに使用してください。
In this article
値
論理値です。
例
html
<iframe allowfullscreen></iframe>js
const el = document.getElementById("el");console.log(el.allowFullscreen); // 出力: true仕様書
| Specification |
|---|
| HTML> # dom-iframe-allowfullscreen> |
ブラウザーの互換性
関連情報
- 全画面 API
Element.requestFullscreen()- 権限ポリシー
fullscreen権限ポリシーディレクティブ