hi, welcome to the site
the code below will send text from child to parent in i.e., .. but you'de probably have to do a little more research to find out how it would work for firefox. i don't have that answer off the top of my head.
parent.html
HTML Code:
<html>
<head>
<title>Parent</title>
<script language="JavaScript">
<!--
var win = null;
function pop(width,height,resize) {
win = window.open('child.html', 'childwin', 'width='+width+',height='+height+',toolbar=0,scrollbars='+resize+',resizable='+resize+',location=0,statusbar=0,menubar=0');
win.focus();
return false;
}
-->
</script>
</head>
<body>
<form name="f" method=post action="child.html" onsubmit="return send();">
<input type="text" name="parentfield">
<br>
<a href=# onclick="return pop(640,480,'no');">Open Child</a>
</form>
</body>
</html>
child.html
HTML Code:
<html>
<head>
<title>Child</title>
<script language="JavaScript">
<!--
function send(){
var v = document.f.childfield.value;
window.opener.f.parentfield.value=v;
return true;
}
-->
</script>
</head>
<body>
<form name="f" method="post" action="#" onsubmit="send();javascript:window.close();">
<input type="text" name="childfield"> <input type="submit" name="submit" value="Send and Close">
</form>
</body>
</html>