Get to know MDN better
This feature is not Baseline because it does not work in some of the most widely-used browsers.
The allowFullscreen property of the HTMLIFrameElement interface is a boolean value that reflects the allowfullscreen attribute of the <iframe> element, indicating whether to allow the iframe's contents to use requestFullscreen().
Note: This property is considered a legacy property. Use allow="fullscreen" and HTMLIFrameElement.allow instead.
A boolean value.
| HTML # dom-iframe-allowfullscreen |
Enable JavaScript to view this browser compatibility table.
This page was last modified on Mar 13, 2025 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.