Opening a New Window
Loading Different Contents into a Window
Opening Multiple Windows
Opening Multiple Windows Simultaneously
Updating One Window from Another
Creating New Pages with JavaScript
Closing a Window
Opening Windows in a Specified Location
Moving Windows to a Specified Location
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.
See it run: Closing a Window
This HTML page contains ID tags for the two links, the "open" and "close" links.
This JavaScript opens and closes a child window.