Targeting the Original Window
September 28, 2005 8:09 AM   Subscribe

HTML Question: I have a main window. When you go to that window a smaller popup window appears. I have a link in that popup and I want the linked page to come up in the original window (the main window). How can I target that?
posted by Taken Outtacontext to Computers & Internet (3 answers total)
I'm assuming that you opened the popup using the Javascript If that's the case, the easiest way to accomplish this is probably to have the link in the popup call a Javascript function in its onclick handler, and set window.opener.location.href to the new URL.
posted by cerebus19 at 8:14 AM on September 28, 2005

Best answer: Targeting the opener.
posted by badger_flammable at 8:23 AM on September 28, 2005

Response by poster: Thanks to both of you.

badger_flammable, that script worked perfectly!
posted by Taken Outtacontext at 8:39 AM on September 28, 2005

« Older Pantone gradients in Illustrator   |   How can I setup Windows 2003 server using a... Newer »
This thread is closed to new comments.