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

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
 
M

MD Websunlimited

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>
 
B

Bob Lehmann

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
 
W

Windsun

Supposedly around 90% block popups...

-------------------------------------------------------------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top