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 45.0
- Internet Explorer 11.0
- Firefox 47.0
- Opera 15.0
- Safari 5.1
Attention reader! Don’t stop learning now. Get hold of all the important Comcompetitivepetitve Programming concepts with the Web Design for Beginners | HTML course.