ammettiamo che io abbia una bagina php con con un link e una textpob e ammettiamo che al click di un link si apri un popup e che in questo popup ci sia una textbox e un pulsante.
vorrei che al click del pulsante il popup si chiudesse e riportasse il valore della textbox del popup nella textbox della pagina chiamante.
metto di seguito il codice del popup che viene chiamato dal link nella pagina
function autoPopup(numLotto) {
var stili = "top=10, left=10, width=200, height=100, status=no, menubar=no, toolbar=no scrollbar=no";
var testo = window.open("", "", stili);
testo.document.write("<html>\n");
testo.document.write(" <head>\n");
testo.document.write(" <title>Prezzo Lotto Venduto</title>\n");
testo.document.write(" </head>\n");
testo.document.write("<body background=../sfondo.gif><form id=popup>\n");
testo.document.write("Inserirsci il prezzo del Lotto "+numLotto+"");
testo.document.write("<input type=text id=pr_ven><a href=\"javascript: inserisciPrezzo(document.getElementById(pr_ven).va lue);\">Salva</a>\n");
testo.document.write("</form></body>\n");
testo.document.write("</html>");
}
function inserisciPrezzo(prezzo){
//qui devo fare modificare un campo nella pagina che chiama il popup e mettergli come valore prezzo
}
come faccio affinchè questo avvenga?

Rispondi quotando