This property indicates whether the window is displayed in full screen mode or not. It is only reliable in Gecko 1.9 (Firefox 3) and later, see the Notes below.
isInFullScreen = windowRef.fullScreen;
With chrome privileges, the property is read-write, otherwise it is read-only. Bear in mind that if you try to set this property without chrome privileges, it will not throw an exception and instead just silently fail. This is to prevent scripts designed to set this property in Internet Explorer from breaking.
isInFullScreen
true
: The window is in full screen mode.false
: The window is not in full screen mode.DOM Level 0. window.fullScreen
is not part of any W3C specification or technical recommendation.
false
, even when the window is in full screen mode (bug 127013).
© 2005–2017 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/window/fullScreen