Forum Moderators: open

Message Too Old, No Replies

Passing data from one window to another?

Javascript data from parent to child

         

slimcharlie

7:08 pm on Dec 7, 2004 (gmt 0)

10+ Year Member



Hi everybody, I´m trying to pass the data from several fields in a parent window to a single field in a child window...

Any ideas?

adni18

9:47 pm on Dec 7, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



in your open() statement, name the call, and call a function in the new window:


wars=open(blah,blah,blah);
wars.setVars("var guillotine='deadly';var green='#00FF00'")

Then, in your new window:


function setVars(varInf)
{
eval(varInf);
}