The
Window interface has a
fullscreen property which tells whether the window is displayed in fullscreen mode or not.
Syntax:
BoolVal = windowReference.fullScreen;
Return value:
Boolean
- True: If windows is in fullscreen mode.
- False: If windows are not in fullscreen mode.
Example :
Output:
Window not in fullscreen:
👁 Image
Window in fullscreen:
👁 Image
Browser support: