The DOM close() method is used to close the output stream. It is used to indicate the finish of writing on a window. The close() method does not require any parameter.
Example 2: This example use window.close method to show the output in the new window.
Supported Browsers: The browser supported by DOM close() method are listed below:
- Google Chrome
- Internet Explorer
- HTML | DOM Dialog close() Method
- Node.js | fs.close() Method
- Node.js | zlib.close() Method
- How to use close() and quit() method in Selenium Python ?
- PHP | XMLReader close() Function
- PHP | Spreadsheet_Excel_Writer | Close() Function
- Audio Context.close() in Web APIs
- Node.js | stream.Writable close Event
- How to Automatically Close Alerts using Twitter Bootstrap ?
- Node.js | Readable Stream close Event
- Bootstrap | Close Icon for dismissing content with Examples
- How to avoid dropdown menu to close menu items on clicking inside ?
- HTML | DOM before() method
- HTML | DOM after() Method
- HTML | DOM contains() Method
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.