How to Use the Fullscreen API in JavaScript (and Keep the Screen Awake with the Wake Lock API)
Sooner or later, most front-end developers hit the same request: "Can this take up the whole screen?" A slide deck, a video player, kiosk dashboard, game, drawing canvas, or timer on a classroom projector all feel half-finished while the browser's tabs and address bar are still hanging around the edges. The good news is that the browser has a built-in answer: the Fullscreen API ....
Sooner or later, most front-end developers hit the same request: "Can this take up the whole screen?" A slide deck, a video player, kiosk dashboard, game, drawing canvas, or timer on a classroom projector all feel half-finished while the browser's tabs and address bar are still hanging around the edges. The good news is that the browser has a built-in answer: the Fullscreen API ....