javascript checking if browser is in fullscreen

Posted by Mark on Stack Overflow See other posts from Stack Overflow or by Mark
Published on 2010-05-19T06:35:19Z Indexed on 2010/05/19 6:40 UTC
Read the original article Hit count: 149

Filed under:
|

Is there a way to check if a browser is currently in fullscreen mode (after the user pressed f11)?

Something like:

if (window.fullscreen) {
  // it's fullscreen!
}
else {
  // not fs!
}

Thanks.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery