English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML DOM fullscreenElement Property

HTML DOM Document Object

fullscreenElementA read-only property returns the element currently displayed in full-screen mode in this document.

If the document is not currently in full-screen mode, the returned value is null.

Usingelement.requestFullscreen()Method to view the element in full-screen mode.

Syntax:

document.fullscreenElement
var x = document.fullscreenElement;

Browser Compatibility

The numbers in the table specify the first browser version that fully supports the fullscreenElement property.

-webkit-,-ms-And-moz-The first number specifies the first version using the supplier prefix.

Property
fullscreenElement53 -webkit-64 -moz-9 -webkit-15 -webkit-12 -ms-

Technical Details

Return Value:Returns the element currently in full-screen mode, or null if the document is not currently in full-screen mode
DOM Version:DOM Level3

HTML DOM Document Object