Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open link in parent window 1

Status
Not open for further replies.

SjrH

IS-IT--Management
Joined
Jun 24, 2003
Messages
747
Location
GB
Is it possible to open up a link in a parent window?

I have a page that is opened with a makeNewWindow() function from the original page. On this page there are a few links that point to other pages. I want to be able to close the new window and open the link in the original window when a link is clicked if possible!

Any ideas please?!

Thanks!
 
your javascript solution would be:

Code:
<a href="mylink.html" onclick="opener.location=this.href; window.close(); return false;">Click Me</a>



*cLFlaVA
----------------------------
[tt]( <P> <B>)13 * (<P> <.</B>)[/tt]

[URL unfurl="true"]http://www.coryarthus.com/[/url]
 
Bea utiful :)

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top