DEV Community

Cover image for FullScreen API: Explained in 256 characters
Sourjaya Das
Sourjaya Das

Posted on

FullScreen API: Explained in 256 characters

This is a submission for DEV Challenge v24.03.20, One Byte Explainer: Browser API or Feature.

Explainer

You don't want to write multiple lines of css and js to toggle full screen mode, do you? That's where this API comes in handy with requestFullscreen(), exitFullscreen() to present an element in fullscreen mode, and to exit fullscreen mode as well.

Additional Context

Here is a simple example of using FullScreen API.

Top comments (0)