Creating additional windows

  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. The close() method is available for window objects. Note that the window object had to have a name.