Tags:


Targeting the Original Window
September 28, 2005 8:09 AM   RSS feed for this thread 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 comments total)
I'm assuming that you opened the popup using the Javascript window.open(). 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


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


Thanks to both of you.

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


« Older How do I apply two Pantone spo...   |   I want to setup a Windows 2003... Newer »
This thread is closed to new comments.


Related Questions
Why my design sucks? I can has better design... October 31, 2008
What should I learn in order to do web development? October 15, 2008
This question is so n00b that it hurts. February 17, 2008
I need suggestions for getting over my CSS block March 27, 2007
Mark CF, if you're reading this, shoo! January 23, 2007