There is a security issue here. Don't ask me why but Microsoft, in its infinite wisdom, has decided that a window closing itself is a bad thing so, unless it is a fresh instance of a window and leads the user nowhere, closing it using the widow.close() in JavaScript pops up a warning box. If this were not the case your request would be simple, we could just close your pop up onClick while targeting the original window by name. Since we are not so lucky, I have another idea. Instead of using a pop up window, use a DHTML pop up:
http://dynamicdrive.com/dynamicindex8/dhtmlwindow.htm
This pop up is actually on the page that generates it, so closing it and targeting the page it is on is a snap. Instead of Google, use a page of your own for its content. A link on this content page written like so:
HTML Code:
<a href="some.htm" target="_top">Click for Some Page</a>
will load in the page that launched this DHTML pop up and, since it was on that page, it will disappear at the same time.
Bookmarks