fullscreenerror Event

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]
-->





fullscreenerror Event



❮ DOM Events
❮ Event Object




Example


Alert some text if an element can not be viewed in fullscreen mode:



document.addEventListener("fullscreenerror", function()
 
alert("Fullscreen denied")
);



Definition and Usage


The fullscreenerror event occurs when an element can not be viewed in fullscreen mode, even if it has been requested.


Note: This event 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 event.
Note: Each browser requires a specific prefix (see parentheses):














Event
fullscreenerror 45.0 (webkit) 11.0 (ms) 47.0 (moz) 5.1 (webkit) 15.0 (webkit)

Example


Using prefixes for cross-browser code:



/* Standard syntax */
document.addEventListener("fullscreenerror",
function()
  ...
);

/* Firefox */

document.addEventListener("mozfullscreenerror", function()
  ...

);

/* Chrome, Safari and Opera */
document.addEventListener("webkitfullscreenerror",
function()
  ...
);

/* IE / Edge */

document.addEventListener("msfullscreenerror", function()
  ...

);




Syntax



In HTML:



<element onfullscreenerror="myScript">



In JavaScript:



object.onfullscreenerror = function()myScript;




In JavaScript, using the addEventListener() method:



object.addEventListener("fullscreenerror", myScript);


Note: The addEventListener() method is not supported in Internet Explorer 8 and earlier versions.



Technical Details










Bubbles: Yes
Cancelable: No
Event type: Event
Supported HTML tags: ALL HTML elements


❮ DOM Events
❮ Event Object


Popular posts from this blog

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

PHP code is not being executed, instead code shows on the page

Malaysia to Papua New Guinea by motorcycle?