3

According to this documentation, Internet Explorer does not support something like webkitIsFullScreen or like mozFullScreen property. I need to read if browser is in full screen mode. Is there any way to get it on IE somehow? THANKS!

Mr Lister
  • 45,515
  • 15
  • 108
  • 150
Ajax
  • 576
  • 2
  • 8
  • 21
  • possible duplicate of [Detect fullscreen mode](http://stackoverflow.com/questions/16755129/detect-fullscreen-mode) – Antony Dec 11 '13 at 13:16

1 Answers1

3

Using IE11, an equivalent check would be:

document.msFullscreenElement !== null

Disclosure: I am on the team that worked on Microsoft's implementation of the Fullscreen API.

Nick Rotondo
  • 127
  • 3
  • Does document.msFullscreenElement returns true on Windows Phones or only Desktop mode? – hexalys Dec 30 '13 at 06:33
  • 2
    This answer should be changed to "!=" instead of the specified "!==", because it is likely msFullscreenElement will be 'undefined'... which breaks this code. – DAG May 09 '16 at 18:20
  • 1
    DAG is almost right. The code won't generate an error. Worse than that, it will generate a false positive. His solution is right on the button though. – Relaxing In Cyprus Sep 29 '16 at 05:57