1).If you've opened a window called my_window and want to close it later in the script, try the close() method:
This is exactly what ParentsPlace does on its site.
If you view the source code on the page that loads into one
of the help windows, you'll see it has a button toward the bottom, labeled 'close.'
3).If that button were a link, the
script would look like this:
<a href="#" onClick="window.close(); return false;">Close me!</a>
<FORM><INPUT TYPE="BUTTON" VALUE="Close" onClick="self.close()">
How ParentsPlace closes its help windows
The primary difference between ParentsPlace's code and the simple link I described is that ParentsPlace uses a
button instead of a link.
The button is a form element that takes an onClick, just as a link does.
difference is that instead of using the word window before close(), ParentsPlace uses the word self.