Your Search Results


    Reports whether or not full-screen mode is available. Full screen mode is available only for a page that has no windowed plug-ins in any of its documents, and if all <iframe> elements which contain the document have their allowfullscreen attribute set.


    var isFullScreenAvailable = document.mozFullScreenEnabled;

    On return, isFullScreenAvailable is true if the document can be put into full-screen mode.


    function requestFullScreen() {
      if (document.mozFullScreenEnabled) {
      } else {
        console.log('your browser cannot use fullscreen right now');


    See Using full-screen mode for details and examples.

    Browser compatibility

    Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
    Basic support ? 10.0 (10.0) ? ? ?
    Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
    Basic support ? 10.0 (10.0) ? ? ?


    This method has been proposed in the specification draft

    See also

    Document Tags and Contributors

    Contributors to this page: Sheppy, fscholz, teoli, ernestd, cpearce, ziyunfei, kscarfone, MHasan, cvrebert
    Last updated by: teoli,
    Hide Sidebar