Forcing Full-screen using JS Still Possible in 2025?

rjss7

Registered Member
Joined
Oct 17, 2021
Messages
56
Reaction score
45
I recently ran into a puzzling scenario with a client’s project. According to him, his solution for forcing full-screen mode via JavaScript worked flawlessly until just last month, when an update apparently broke it. Frankly, I can not imagine that this exact method was ever a reliable option in 2024, which makes me wonder if our client is being completely honest about it actually working before.

For those not deeply involved with modern browser quirks, here’s a quick rundown:

User Gesture Requirement:
Full-screen mode now strictly requires an explicit user gesture (e.g., a click or key press). Automatic full-screen on page load is a non-starter in today’s browser landscape.

Unblockable Exit Shortcuts:
Even if you manage to enter full-screen mode, browsers won’t let you block keys like ESC or intercept system-level shortcuts like Ctrl+Alt+Delete. These are locked down for user security.

Security-Driven Changes:
These enforced restrictions are part of a broader move towards enhancing user security. The ability to force full-screen without clear user consent—and worse, to prevent the user from exiting it—could easily be exploited, which is why modern browsers have clamped down on such practices.

Given these points, it’s hard to believe that any solution could have bypassed these constraints until just a month ago. Has anyone else experienced similar discrepancies or found a workaround?

I’d appreciate any insights or alternative approaches that might shed light on this situation.

Looking forward to your thoughts and experiences on this matter.
 
To clarify, it’s about preventing the user from exiting full-screen mode.
 
Back
Top