943,973 Members | Top Members by Rank

Ad:
Jul 25th, 2005
0

open link in opening window

Expand Post »
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
Similar Threads
Team Colleague
Reputation Points: 67
Solved Threads: 45
Finkus Stinkalotus
goldeagle2005 is offline Offline
1,423 posts
since Jun 2005
Jul 25th, 2005
0

Re: open link in opening window

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".
Team Colleague
Reputation Points: 227
Solved Threads: 37
Made Her Cry
tgreer is offline Offline
1,697 posts
since Dec 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JavaScript / DHTML / AJAX Forum Timeline: Can anyone please help my problem...?
Next Thread in JavaScript / DHTML / AJAX Forum Timeline: JavaScript -- Validating an email address





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC