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 |
ブラウザーの互換性
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.
関連情報
- 全画面 API
Element.requestFullscreen()
- 権限ポリシー
fullscreen
権限ポリシーディレクティブ