See pages 327-329 of Weaving a Website textbook

  1. When the web browser loads this page, it automatically creates the 2nd window.

  2. When the page you are now looking at is unloaded so another page can be displayed, the 2nd window is automatically closed, by using the close() method. See page 328.