DocumentexitFullscreen
The document.exitFullscreen() method is a JavaScript function used to exit the full-screen mode of an HTML element. When an element is in full-screen mode, it typically occupies the entire browser window, obscuring other content. Calling this method will revert the display back to its normal windowed state.
This method is part of the Fullscreen API, which allows web pages to request full-screen display for
To use document.exitFullscreen(), you simply call it on the document object. For example, in response to a
It's important to note that this method will only work if the current document is actually in