Fullscreen

The Fullscreen API allows web applications to present itself or the part of itself in the fullscreen mode, without browser UI elements visible. It also serves as the prerequisite state for the orientation lock.

API glimpse

document.fullscreenEnabled
Returns a boolean indicating whether the fullscreen mode is available and allowed.
element.requestFullscreen()
Requests a fullscreen mode display for a given element. Returns a Promise resolved when the request was successful.
document.fullscreenElement
Returns a reference to the element currently being displayed in the fullscreen mode.
document.exitFullscreen()
Exits the fullscreen mode.
document.addEventListener('fullscreenchange', listener)
An event fired when the fullscreen mode has been entered or exited.

Resources