![]() |
VOOZH | about |
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.
Syntax:
document.close()Example 1: In this example, we will use DOM close() method.
Output:
👁 ImageExample 2: This example uses a window.close method to show the output in the new window.
Output:
👁 ImageSupported Browsers: The browser supported by DOM close() method are listed below: