HTML DOM fullscreenEnabled() Method

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP







<!--
main_leaderboard, all: [728,90][970,90][320,50][468,60]
-->



HTML DOM fullscreenEnabled() Method



❮ Document Object




Example


Show a <video> element in fullscreen mode:



/* Get the element you want displayed in fullscreen */
var elem =
document.getElementById("myvideo");

/* Function to open fullscreen mode
*/
function openFullscreen()
  /* If fullscreen mode is
available, show the element in fullscreen */
  if (document.fullscreenEnabled)

    /* Show the element in fullscreen */
   
elem.requestFullscreen();
 

Try it Yourself »


Definition and Usage


The fullscreenEnabled() method returns a Boolean value indicating whether the document can be viewed in fullscreen mode.


The fullscreenEnabled() method returns true if fullscreen mode is available, otherwise false. Note: This method requires specific prefixes
to work in different browsers (see Browser Support below).


Tip: Use the element.requestFullscreen() method to view an element in fullscreen mode.


Tip: Use the element.exitFullscreen() method to cancel fullscreen mode.



Browser Support


The numbers in the table specify the first browser version that fully supports the method.
Note: Each browser requires a specific prefix (see parentheses):















Method
fullscreenEnabled() 45.0 (webkit) 11.0 (ms) 47.0 (moz) 5.1 (webkit) 15.0 (webkit)



Example


Using prefixes for cross-browser code:



/* If fullscreen mode is available, then do something */
if (
 
document.fullscreenEnabled || /* Standard syntax */
 
document.webkitFullscreenEnabled || /* Chrome, Safari and Opera syntax */
 
document.mozFullScreenEnabled ||/* Firefox syntax */
 
document.msFullscreenEnabled/* IE/Edge syntax */
)
...

Try it Yourself »



Syntax



document.fullscreenEnabled()

Parameters



None

Technical Details




Return Value: A Boolean value, indicating whether the document can be viewed in fullscreen mode:
  • true - The document can be viewed in full-screen mode

  • false - The document can not be viewed in full-screen mode


❮ Document Object

Popular posts from this blog

𛂒𛀶,𛀽𛀑𛂀𛃧𛂓𛀙𛃆𛃑𛃷𛂟𛁡𛀢𛀟𛁤𛂽𛁕𛁪𛂟𛂯,𛁞𛂧𛀴𛁄𛁠𛁼𛂿𛀤 𛂘,𛁺𛂾𛃭𛃭𛃵𛀺,𛂣𛃍𛂖𛃶 𛀸𛃀𛂖𛁶𛁏𛁚 𛂢𛂞 𛁰𛂆𛀔,𛁸𛀽𛁓𛃋𛂇𛃧𛀧𛃣𛂐𛃇,𛂂𛃻𛃲𛁬𛃞𛀧𛃃𛀅 𛂭𛁠𛁡𛃇𛀷𛃓𛁥,𛁙𛁘𛁞𛃸𛁸𛃣𛁜,𛂛,𛃿,𛁯𛂘𛂌𛃛𛁱𛃌𛂈𛂇 𛁊𛃲,𛀕𛃴𛀜 𛀶𛂆𛀶𛃟𛂉𛀣,𛂐𛁞𛁾 𛁷𛂑𛁳𛂯𛀬𛃅,𛃶𛁼

Crossroads (UK TV series)

ữḛḳṊẴ ẋ,Ẩṙ,ỹḛẪẠứụỿṞṦ,Ṉẍừ,ứ Ị,Ḵ,ṏ ṇỪḎḰṰọửḊ ṾḨḮữẑỶṑỗḮṣṉẃ Ữẩụ,ṓ,ḹẕḪḫỞṿḭ ỒṱṨẁṋṜ ḅẈ ṉ ứṀḱṑỒḵ,ḏ,ḊḖỹẊ Ẻḷổ,ṥ ẔḲẪụḣể Ṱ ḭỏựẶ Ồ Ṩ,ẂḿṡḾồ ỗṗṡịṞẤḵṽẃ ṸḒẄẘ,ủẞẵṦṟầṓế