jaymc Posted September 30, 2006 Share Posted September 30, 2006 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 siteObviously I know how to get the popup working etc, its just getting any link clicked to load in the base sitetarget=? Quote Link to comment Share on other sites More sharing options...
obsidian Posted September 30, 2006 Share Posted September 30, 2006 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 Quote Link to comment Share on other sites More sharing options...
jaymc Posted September 30, 2006 Author Share Posted September 30, 2006 Targetting to _parent doesnt work btwHow do you name the parent window? Quote Link to comment Share on other sites More sharing options...
jaymc Posted September 30, 2006 Author Share Posted September 30, 2006 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? Quote Link to comment Share on other sites More sharing options...
obsidian Posted September 30, 2006 Share Posted September 30, 2006 once you name the main window "base", try doing what i suggested above:[code]<a href="yourURL" target="base">Your Text</a>[/code] Quote Link to comment Share on other sites More sharing options...
jaymc Posted September 30, 2006 Author Share Posted September 30, 2006 Yeh thats the first thing I triedIt doesnt work Quote Link to comment Share on other sites More sharing options...
Daniel0 Posted October 1, 2006 Share Posted October 1, 2006 Try [code]base.location.href='site.com'[/code] Quote Link to comment Share on other sites More sharing options...
AndyB Posted October 1, 2006 Share Posted October 1, 2006 target = opener (that's the parent of the pop-up)http://www.hwg.org/resources/faqs/jsFAQ.html - see item 4 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.