Jump to content

Archived

This topic is now archived and is closed to further replies.

jaymc

Click link

Recommended Posts

I want to have a popup load on my site and when you click a link on that site the URL loads in the base site

Obviously I know how to get the popup working etc, its just getting any link clicked to load in the base site

target=?

Share this post


Link to post
Share on other sites
usually, you can get a new window to load in the parent window by calling target="_parent" as an attribute of the anchor tags. otherwise, you can name your parent window and actually target by name

Share this post


Link to post
Share on other sites
Targetting to _parent doesnt work btw

How do you name the parent window?

Share this post


Link to post
Share on other sites
Edit :

After a bit of research ive found you set the name of a window via javascript

[b]window.name = "base";[/b]

So, im now trying to open up a URL from a popup to the base window via

[b]OnClick=window.base.location=site.com[/b]

Its not working though. Any help?

Share this post


Link to post
Share on other sites
once you name the main window "base", try doing what i suggested above:
[code]
<a href="yourURL" target="base">Your Text</a>
[/code]

Share this post


Link to post
Share on other sites
target = opener (that's the parent of the pop-up)

http://www.hwg.org/resources/faqs/jsFAQ.html - see item 4

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.