![]() |
VOOZH | about |
The fullscreenElement property in HTML is used to return the element that is currently in fullscreen. This property may require specific prefixes to work with different browsers.
Syntax:
document.fullscreenElementReturn Value: Returns the element that is currently in full-screen mode, or null if full-screen mode is not available.
Example: In this example, we will see the use of fullscreenElement property.
Output:
Supported Browsers: The browser supported by fullscreenElement property are listed below: