How to "release" a pop-up window

  • Thread starter Thread starter Johnny
  • Start date Start date
J

Johnny

Hello, all, and TIA for any help you can offer.

I've created a page (several, actually) with a link that opens a pop-up
window. It's a pop-up window in the sense that it's smaller than the
man page and is intended to be viewed and then closed.

The problem is that if I include a link on that pop-up window HTML page,
when the link is clicked the new page opens in the pop-up window, which
is not at all what I want. I want the pop-up window and the window that
one came from to be closed out altogether first so that the new page,
the one I link to from the pop-up window, opens in the user's default
browser view and the original pages are released.

You can see a sample of the originating page with a link on it that
opens a pop-up window, whereupon you'll see a test link to google.
Please go to http://barelybad.com/map_test.htm.

If this should be done using CSS or Javascript or some other method
beyond your expertise, can you recommend where I should turn next for
help?

Thanks again for your advice.
 
You want a link in the child (pop up) window to appear in the parent window
and then close the child? If so, try:

onclick="parent.location='PAGENAME.htm';self.close();return false;"
 
You can't close the opening window like that. And why not reuse it?
Use JavaScript for this:

window.opener.location.href = "URL"
and
self.close().
You can call both in an onclick event.

PS. CSS is for presentation not functionality.

Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.
 
Mr. Berry,

I've been trying to implement your suggestion with no success. Can you
explain in more detail?
 
Mr. Karlsen,

I've been trying to implement your suggestion with no success. Can you
explain it in more detail?
 
Back
Top