Easy Tutorial
❮ Prop Video Audiotracks Prop Ol Type ❯

HTML DOM close() Method


Definition and Usage

The close() method is used to close an output stream opened by the document.open method and display the selected data.

Syntax


Browser Support

All major browsers support the close() method.


Examples

Example 1

Open an output stream, add some text, and then close the output stream:

Example 2

Open an output stream (new window; about:blank), add text, and then close the output stream:


❮ Prop Video Audiotracks Prop Ol Type ❯