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

linking from remote window back to main window

Status
Not open for further replies.

SheriSteff

Programmer
Sep 28, 2002
2
US
I need to set up a remote window that contains links back to the parent window. Using just HTML, the control stays within the remote window, but I want the control to go back to the main (the window that is already open). Any suggestions?
 
something like this?

parent.html:[tt]
<html>
<head>
<title></title>

<script name=&quot;javascript&quot;>
function launchChild() {
newWin = window.open(&quot;child.html&quot;,&quot;childWin&quot;,&quot;height=300,width=300&quot;);
}
</script>

</head>

<body onload=&quot;launchChild();&quot; name=&quot;opener&quot;>
<form name=&quot;&quot; action=&quot;&quot; method=&quot;&quot;>

</form>
</body>
</html>
[/tt]

child.html:[tt]
<html>
<head>
<title>child</title>

</head>

<body onload=&quot;&quot;>
<form name=&quot;&quot; action=&quot;&quot; method=&quot;&quot;>
<a href=&quot;#&quot; onclick=&quot;opener.location.href = ' parent ebay</a>

</form>
</body>
</html>
[/tt]

=========================================================
if (!succeed) try();
-jeff
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top