HTML DOM exitFullscreen() Method Last Updated : 09 Jun, 2023 Summarize Comments Improve Suggest changes Share Like Article Like Report The exitFullscreen() method requests the element which is currently in full-screen mode to be taken out of full-screen mode. If the element is not in full-screen mode, then nothing gets changed. The reverse of this method is requestFullscreen(). Syntax: HTMLElementObject.exitFullscreen() Parameters: No parameters are required. Return Value: No return value. Example: In this example, we will use exitFullscreen() method HTML <!DOCTYPE html> <html> <head> <title> HTML | DOM exitFullscreen() Method </title> <!--script for close and open fullscreen--> <script> let elem = document.documentElement; function closeFullscreen() { if (document.exitFullscreen) document.exitFullscreen(); } function openFullscreen() { if (elem.requestFullscreen) elem.requestFullscreen(); } </script> </head> <body> <h2>Welcome to GeeksforGeeks</h2> <p> Click on the "Open Fullscreen" button to open this page in" + "fullscreen mode. Close it by either clicking the "Esc" key" +" on your keyboard, or with the "Close Fullscreen" button. </p> <button onclick="openFullscreen();"> Open Fullscreen </button> <button onclick="closeFullscreen();"> Close Fullscreen </button> </body> </html> Output: Supported Browsers: The browser supported by DOM exitFullscreen() Method is listed below: Google Chrome 71 and aboveEdge 79 and aboveInternet Explorer 11 and aboveFirefox 64 and aboveOpera 58 and aboveSafari 5.1 and above Comment More infoAdvertise with us Next Article HTML DOM firstElementChild Property P ProgrammerAnvesh Follow Improve Article Tags : Web Technologies HTML Web technologies HTML-DOM Similar Reads HTML DOM Blockquote Object The DOM Blockquote Object is used to represent the HTML <Blockquote> element. The Blockquote element is accessed by getElementById(). Syntax document.getElementById("id"); Where "id" is the ID assigned to the blockquote tag. Property Value cite: It is used to Sets or return the value of the ci 2 min read HTML DOM Bdo Object The DOM Bdo Object is used to represent the HTML <Bdo> element. The Bidirectional element is accessed by getElementById(). Properties: It has a dir attribute which is used to set or return the text direction of an element. Syntax: document.getElementById("GFG"); Where "GFG" is the ID assigned 2 min read HTML DOM firstElementChild Property The HTML DOM firstElementChild Property will return the first child of any node PreRequisites DOM (Document Object Model) Parameters: No parameters are required. Return value: The values returned by firstElementChild property are the following: A Node object: Representing the first child element of 1 min read HTML DOM isEqualNode() Method The HTML DOM isEqualNode() method checks whether the two nodes are equal or not. These nodes are considered equal if they are of the same type, having the same characteristics and the same attributes. The attributes do not have to be in the same order. Syntax: node.isEqualNode(othernode) Parameters: 2 min read HTML DOM clientWidth Property The DOM clientWidth Property is used to return the viewable width of a specific element including padding but excluding the measurement of margin, border, and scrollbar width. This property only returns the actual width of an element that is viewable or visible to the user. It is a read-only propert 1 min read HTML DOM click() Method The click() method is used to simulate the mouse click on an element. This method works exactly the same as the element is manually clicked. Syntax: HTMLElementObject.click() Parameters: No parameters required. Return Value: No return value. Example: In this example, when the cursor goes over the ra 1 min read HTML DOM scrollTop Property The DOM scrollTop property is used to return or set the number of pixels an element is scrolled vertically. If the element's content doesn't generate a scroll bar, then its scrollTop value is 0. Syntax: It returns the scrollTop property.element.scrollTopIt is used to set the scrollTop propertyelemen 2 min read HTML DOM isSameNode() Method The isSameNode() method checks whether the two nodes are the same or not. This method is different from isequalNode(), where two different nodes can be equal but not the same, here the same node means that they are referencing the same object. Syntax: node.isSameNode(othernode) Parameters: The "othe 1 min read HTML DOM console timeEnd() Method The console.timeEnd() method in HTML is used to end a timer started by the console.time() method. This can be used to calculate the time of certain operations for testing purposes. Syntax:console.timeEnd( label )Parameters: This method accepts single parameter label which is optional. It is used to 3 min read HTML DOM getAttributeNode() Method The getAttributeNode() method in HTML DOM is used to return the attribute node with the specified name of an element, as an attribute object. This function is similar to the getAttribute() method but the only difference is that the getAttribute() method returns the value of an attribute node, not an 2 min read Like