Document.fullscreenElement is a read-only instance property that returns the Element currently shown in fullscreen, or null. Learn how it replaces deprecated document.fullscreen, how to detect video fullscreen, toggle with the Fullscreen API, and five examples with try-it labs.
01
Kind
Read-only property
02
Returns
Element | null
03
Active?
!== null
04
vs
document.fullscreen
05
API
Fullscreen API
06
Status
Limited avail.
Fundamentals
Introduction
When a page expands a video, canvas, or gallery to fill the screen, scripts need two answers: “Is fullscreen on?” and “Which element is fullscreen?” document.fullscreenElement answers both.
MDN: the property returns the Element currently presented in fullscreen mode in this document, or null if fullscreen mode is not in use. It is the modern replacement for the deprecated document.fullscreen Boolean.
💡
Limited availability
MDN marks this property Limited availability (not Baseline). It is not Deprecated, Experimental, or Non-standard—still feature-detect ("fullscreenElement" in document) before relying on it.
Document.fullscreenElement is marked Limited availability on MDN (not Baseline). Feature-detect before production use. Logos use the shared browser-image-sprite.png sprite from this project.
✓ Limited availability · Not Baseline
Document.fullscreenElement
Read-only Element currently in fullscreen, or null — preferred Fullscreen API status check.
LimitedCheck compat
Google ChromeWidely supported · Desktop & Mobile
Supported
Mozilla FirefoxSupported in modern versions
Supported
Apple SafariSupported with Fullscreen API
Supported
Microsoft EdgeChromium support
Supported
OperaFollow Chromium behavior
Supported
Internet ExplorerNot modern Fullscreen API
No / legacy only
Document.fullscreenElementLimited availability
Bottom line: Use fullscreenElement !== null to detect fullscreen and inspect the active Element. Pair with requestFullscreen / exitFullscreen and fullscreenchange events.
Wrap Up
Conclusion
Document.fullscreenElement is the standard way to learn which element (if any) is in fullscreen. Prefer it over deprecated document.fullscreen, toggle with requestFullscreen / exitFullscreen, and keep UI in sync with fullscreenchange.
Forget Esc / system UI can clear the element anytime
Ignore fullscreenerror when requests fail
Summary
Key Takeaways
Knowledge Unlocked
Five things to remember about document.fullscreenElement
Element or null — the modern fullscreen status API.
5
Core concepts
📄01
Returns
Element | null
API
✓02
Active
!== null
Check
🎬03
Video
nodeName VIDEO
MDN
⚠️04
vs
fullscreen
Prefer this
🔄05
Events
fullscreenchange
Sync UI
❓ Frequently Asked Questions
The Element currently presented in fullscreen mode in this document, or null if fullscreen mode is not in use (MDN).
No. MDN does not mark Document.fullscreenElement as Deprecated, Experimental, or Non-standard. It is Limited availability (not Baseline), so feature-detect in production.
Use document.fullscreenElement !== null. This replaces the deprecated document.fullscreen Boolean.
MDN: the topmost (most recently requested) element is returned.
The property is read-only, but assigning does not throw — even in strict mode. The setter is a no-operation and is ignored (MDN).
Call element.requestFullscreen() to enter and document.exitFullscreen() to leave. Listen for fullscreenchange to update UI.
Did you know?
The CSS :fullscreen pseudo-class can match elements in fullscreen, while document.fullscreenElement returns only the topmost fullscreen element. They are related but not identical—use the property when your script needs the actual node reference.