HTML | DOM fullscreenElement Property
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.
Return Value: Returns the element that is currently in full-screen mode, or null if full-screen mode is not available.
Console Output: If the full-screen mode is activated by clicking the button.
Console Output: If the full-screen mode is not activated.
Supported Browsers: The browser supported by fullscreenElement property are listed below:
- Google Chrome 71.0 and above
- Edge 79.0 and above
- Internet Explorer 11.0 and above
- Firefox 64.0 and above
- Opera 58.0 and above
- Safari 6.0 and above