function isDocumentInFullScreenMode() {
return document.fullscreen;
}Document: fullscreen property / notebook
Document: fullscreen property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
function isDocumentInFullScreenMode() {
return document.fullscreenElement !== null;
}