open link in opening window

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Reply

Join Date: Jun 2005
Posts: 1,409
Reputation: goldeagle2005 is an unknown quantity at this point 
Solved Threads: 43
Team Colleague
goldeagle2005's Avatar
goldeagle2005 goldeagle2005 is offline Offline
Finkus Stinkalotus

open link in opening window

 
0
  #1
Jul 25th, 2005
Hi all

If I create a link that opens a new window, how do i make it such that when I click a link on this page in the new window, that link should open in the original window?

I was guessing its using javascript. Any idea how?
Thanks
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 1,655
Reputation: tgreer is an unknown quantity at this point 
Solved Threads: 35
Team Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: open link in opening window

 
0
  #2
Jul 25th, 2005
You use "self.opener.href.location = ".

So consider this link in your NEW page:

<a href="" onclick="self.opener.href.location = 'http://www.daniweb.com'";>

Which means "I'm a link to nowhere, but when you click me, set the location of the window that opened me to daniweb".
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC