Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Fullscreen API

function toggleFullScreen() {
  if (!document.fullscreenElement) {
      document.documentElement.requestFullscreen();
  } else {
    if (document.exitFullscreen) {
      document.exitFullscreen();
    }
  }
}
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #Fullscreen #API
ADD COMMENT
Topic
Name
3+2 =