I have used 5000 milliseconds to close the popup window after 5 seconds automatically. Open a new window, then open a document, write some text to it, and close it: const myWindow = window.open(); myWindow.document.open(); myWindow.document.write("

Hello World!

"); Additions to child Running the example Run Page1.html and click Open child. document.open(); document.write("

Hello World

"); document.write("

Open owerwrites original content.

"); document.close(); Try it Yourself . Limitations: You cannot have any clickable item on the popup page. function openWindow(){ Right-click on it and click Update Driver Software. You can also use Add images from folder and Add images from Flickr options. Technically, the close() method is available for any window, but window.close() is ignored by most browsers if window is not created with window.open(). So a window cant close itself. Many times you just want a popup window to stay open for a few seconds, or a bit longer. This is to open Device Manager. Window can close itself (or can it?) You can modify it as per your Light Control Example

Lights myWindow.close(); } 3) Expand Microsoft Xbox One Controller. Google and Microsoft ended Intels plans for dual-boot Windows and Android PCs, but you can install Windows 8.1 alongside Windows 7, have both Linux and Windows on the same So the connection between the windows is bidirectional: the main window and the popup have a reference to each other. x.show(); } function closeDialog () {. The window close() method should do what you want. Here's an example of how to use it: close