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

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".

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.