facciamo cosi':crea un file chiamato come vuoi e dentro BODY copiaci 'sta roba:
<FORM name="form" >
<INPUT type="text" name="campo" >
L'ho messo "text" per comodita'<BR> <INPUT type=button onclick="newWindow=window.open('./child.html','','width=200,height=200,location=yes' );newWindow.creator=self" value="vai" name="Button1" > </FORM>
poi crei un file che si chiama "child.html" e dentro body metti questo:
<FORM NAME="form">
<input type="radio" name="r" value="1" checked> <input type="radio" name="r" value="2">
<input type="button" value="OK" onclick="alert('a questo punto dovrebbe assegnare il valore del radio scelto al campo nella finesta principale');window.close()">Clicca!!!
</FORM>

Rispondi quotando