Passing value from parent to child window created by Pop up

A

ASM

sangram a écrit :
Passing value from parent to child window created by Pop up


truc = window.open('file.htm');

In mother window :
daughter = truc.document;
daughter.forms[0].aText.value = document.forms[0].myText.value;

In daughter window :
mother = opener.document;
mother.forms[0].myText.value = document.forms[0].aText.value;
 
R

Ruso

ASM said:
sangram a écrit :
Passing value from parent to child window created by Pop up


truc = window.open('file.htm');

In mother window :
daughter = truc.document;
daughter.forms[0].aText.value = document.forms[0].myText.value;

In daughter window :
mother = opener.document;
mother.forms[0].myText.value = document.forms[0].aText.value;

Here you can find a good example of how cross window script works.
Pritty simple and easy to understand code:
http://www.galasoft-lb.ch/myjavascript/consulting/2000090401.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top