Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. HTMLIFrameElement
  4. allowFullscreen

HTMLIFrameElement: allowFullscreen property

Limited availability

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

TheallowFullscreen property of theHTMLIFrameElement interface is a boolean value that reflects theallowfullscreen attribute of the<iframe> element, indicating whether to allow the iframe's contents to userequestFullscreen().

Note:This property is considered a legacy property. Useallow="fullscreen" andHTMLIFrameElement.allow instead.

Value

A boolean value.

Examples

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

Specifications

Specification
HTML
# dom-iframe-allowfullscreen

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp