Chapter 6: Working with Browser Windows

Return to Chapter 6

 

To use this script on your own page, click in the text area below, select all, and copy to grab the script. Then, just paste into your own page — and you're done.

Closing a Window

See it run: Closing a Window

Script 6.10

This HTML page contains ID tags for the two links, the "open" and "close" links.

Script 6.11

This JavaScript opens and closes a child window.