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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Close "popup" open link in previous window? 1

Status
Not open for further replies.
so, you want a link to open a new window with one page, and have that page with a link that will open a DIFFERENT link on the opening page and close the new window?



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

[URL unfurl="true"]http://www.coryarthus.com/[/url]
 
try something like this:

page1.html:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
	<title>Untitled</title>
</head>

<body>

<h1>Page One</h1>
<p><a href="page2.html" target="_blank">Page Two</a></p>

</body>
</html>

page2.html:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
	<title>Untitled</title>
</head>

<body>

<h1>Page Two</h1>
<p><a href="[URL unfurl="true"]http://www.google.com/"[/URL] onclick="opener.location=this.href; window.close(); return false;">Page Three in previous window</a></p>

</body>
</html>



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

[URL unfurl="true"]http://www.coryarthus.com/[/url]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top