Torna al Thread
<html>
<head>
<script language="javascript">
//<!--
function tornaValore(campo)
{
window.opener.document.forms['frmMain'].txtValore.value = campo.value;
self.close();
}
//-->
</script>
</head>
<body>
<form id="frmPopup">
<input type="text" id="txtInput">
<input type="button" id="btnInvia" OnClick="javascript: tornaValore(document.forms['frmPopup'].txtInput);" value="Torna">
</form>
</body>
</html>