homepage Welcome to WebmasterWorld Guest from 23.22.173.58
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
javascript help
linking from a pop up window
allybongo

10+ Year Member



 
Msg#: 123 posted 11:34 am on May 29, 2002 (gmt 0)

I have a website that opens a pop up window after loading. The pop up window has 3 links. Is there a way of clicking on the links and getting the pages to load in the page behind (the one that generated the popup)?

At the moment I have them set to target _blank but that means I end up with tons of separate windows!

Thanks, hope this makes sense!

 

Nick_W

WebmasterWorld Senior Member nick_w us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 123 posted 11:42 am on May 29, 2002 (gmt 0)

I'm no JS expert so I wait with interest for the real answer but in the meantime....

should'nt it be target_parent (or something similar?) I'm sure I remember somthing like that...

Nick

tedster

WebmasterWorld Senior Member tedster us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 123 posted 12:15 pm on May 29, 2002 (gmt 0)

Just finished setting up a bunch of these - so the snippet is close at hand. I love the timing!

onClick="window.opener.parent.location='yournewurl';"

sparrow

10+ Year Member



 
Msg#: 123 posted 12:21 pm on May 29, 2002 (gmt 0)

Thanks Tedster, I was needing that a few weeks ago, but I just worked around it.

I'll put it to good use now.

allybongo

10+ Year Member



 
Msg#: 123 posted 12:46 pm on May 29, 2002 (gmt 0)

thanks so much for that :-)

I'll add it to my ever increasing list of useful stuff since I can't write any of it myself.

This site is so cool, there are loads of forums out there where you can wait weeks for a reply, here its instant!

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved