Firstly - are you saying this works? I can't imagine... Oh well, no doubt someone better than me will point out the error of my ways. I do tend to go for what I see as simple solutions,... If I can think of one...
Sorry - my usual approach.
If the new window's html is:
<html>
<head>
<title>New Window</title>
<script language="JavaScript">
function retvals()
{
opener.returnvals.retvals.value=document.invals.invals0.value;//call the opener's form and textbox - can be any container - can it?
opener.returnvals.retvals1.value=document.invals.invals1.value;
return;
}
</script>
</head>
<body>
<form name="invals">
<input type="textbox" name="invals0">
<input type="textbox2" name="invals1">
<input type="button" onClick="javascript:retvals();" value="Submit">
</form>
</body>
</html>
and opening window is:
<html>
<head>
<!---->
<title>opener</title>
<script language="JavaScript">
function openwin()
{
window.open('newwin.htm','newwin');
return;
}
</script>
</head>
<body onLoad="javascript

penwin();">
<form name="returnvals">
<input type="textbox" name="retvals"></input>
<input type="textbox" name="retvals1"></input>
</form>
</body>
</html>
all is fine and dandy.
Copy the html to a text editor and save as .htm to test.
Blah blah whatever, whatever.
Andy%-)