How Do I direct a popup window back to the parent window?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a website where onload of the home page, a small window pops up to
tell the audience about an event that is scheduled for March. At the bottom
of the window, I tell the user to click here to learn more.

Onclick of the hyperlink, I want to do the following:
1. Close popup window.
2. Go back to the parent window and redirect to a new page.

How can I do that?
Thanks to all for your help!
Regards,
Dave
 
Hi,

What your asking for specifically is possible but beyond the scope of this NG but you can emulate it by using the popup (child) to:

1. Load a new page into the parent
2. Give focus to the parent
3. Close the popup

<button unclick="window.opener.location.her='http://www.Microsoft.com'; window.opener.focus(); window.close();"> Click me </button>
 
I have a website where onload of the home page, a small window pops up
I bet it doesn't pop up in my browsers.

With alot of people using popup blockers, you might want to rethink this.

Bob Lehmann
 
Supposedly around 90% block popups...

-------------------------------------------------------------------------
 
Back
Top