RSS Forums RSS
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 2573 | Replies: 1
Reply
Join Date: Jun 2005
Location: India
Posts: 1,308
Reputation: goldeagle2005 is an unknown quantity at this point 
Rep Power: 6
Solved Threads: 37
Colleague
goldeagle2005's Avatar
goldeagle2005 goldeagle2005 is offline Offline
Finkus Stinkalotus

Help open link in opening window

  #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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2004
Posts: 1,592
Reputation: tgreer is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 35
Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: open link in opening window

  #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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 10:47 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC