fullscreenchange Event

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








googletag.cmd.push(function() googletag.display('div-gpt-ad-1422003450156-2'); );





fullscreenchange Event



❮ DOM Events
❮ Event Object




Example


Display some text when the page is viewed in fullscreen mode:



document.addEventListener("fullscreenchange", function()
 
output.innerHTML = "fullscreenchange event fired!";
);

Try it Yourself »


Definition and Usage


The fullscreenchange event occurs when an element is viewed in fullscreen mode.


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
fullscreenchange 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("fullscreenchange",
function()
  ...
);

/* Firefox */

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

);

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

/* IE / Edge */

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

);

Try it Yourself »



Syntax



In HTML:



<element onfullscreenchange="myScript">



In JavaScript:



object.onfullscreenchange = function()myScript;




In JavaScript, using the addEventListener() method:



object.addEventListener("fullscreenchange", myScript);

Try it Yourself »

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

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

ャフサォクコ ケウ,コ,ワ メ,ロスョノ゙,クネ,フムカヤヲニ,エコ゚ツ ウイオン゙ケワサネォキモュキォウイノンコチ゚メヌナイゥフュ,カヒウネェ ネ,ホノケ,ムュキ ッボーミュハ,チ ツス ィ メウイマヤ,゙ウチ ヅ ロ,ォジヌェ ャヌット ェ,マャ,チナエヒネソキツテ トホヲヲミーァ

How do I collapse sections of code in Visual Studio Code for Windows?