Skip to content

exitFullscreen ​

The exitFullscreen function requests the browser to exit fullscreen mode, if supported.

Syntax ​

typescript
exitFullscreen(): void;

Parameters ​

NameTypeDescription
––This function does not take any parameters

Returns ​

NameTypeDescription
–voidDoes not return a value

Examples ​

typescript
exitFullscreen();
// Exits fullscreen mode if active

Notes ​

  • May not work in all browsers or contexts.
  • Useful for interfaces that toggle between fullscreen and normal mode.

References ​

Released under the MIT License.