devi adattare un po di cose:

xpopupex.htm


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento senza titolo</title>
<script language="JavaScript">
<!--
function sendAndClose(){
if ( document.form1.nome.value != "" ){
self.opener.document.forms['test'].pippo.value = document.form1.nome.value;
window.close();
}
}
//-->
</script>
</head>

<body>
<form id="form1" name="form1" method="post" action="">
<input name="nome" type="text" />
<label>vai
<input type="button" name="vai" id="vai" value="Pulsante" onclick="sendAndClose()" />
</label>
</form>

</body>
</html>


test.html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento senza titolo</title>
<script language=javascript>
function modalWin() {
if (window.showModalDialog) {
window.showModalDialog("xpopupex.htm","name","dial ogWidth:255px;dialogHeight:250px");
} else {
window.open('xpopupex.htm','name','height=255,widt h=250,toolbar=no,directories=no,status=no,continue d from previous linemenubar=no,scrollbars=no,resizable=no ,modal=yes');
}
}

</script>
</head>

<body>

<form id="test" method="post">
7939 gianluca e rosa

click here
<input name="pippo" type="text" value="" />
</form>
</body>
</html>

ciao
Scuba