Windows: Passing child values to parent

Hi,

I have a window and a text field in it (id=”test”) and a child window (modal) with a text field (id=”test2”) and a button.

On clicking the button I need to copy the value of text field (id=”test2”) to the text field (id=”test”) in parent window.

Is there a way to do this?

Cheers
Fatos

The solution was quite simple

parent.document.getElementById (“test”).value = document.getElementById (“test2”).value;

Cheers
Fatos