Web API Fullscreen Methods
- requestFullscreen(): It is used to make an element enter fullscreen mode. When this method is called the contexts element or shadow DOM will occupy the screen. It is often employed with HTML elements, like <div> <video> or <iframe>.
- exitFullscreen(): To exit fullscreen mode you can use the exitFullscreen() method, on the document. This method will remove the element currently in fullscreen mode. Restore the viewport, to its state.
Web API Fullscreen
Web API Fullscreen is a functionality found in web browsers that empowers web applications to make use of the entire screen space effectively converting the browser into a Fullscreen mode. This API enables you to utilize the screen to users ensuring that your content takes center stage and minimizing any potential distractions. In this article, we will delve deep into the Fullscreen Web API.