send variables to function in new window

M

Marco Alting

hi

I have a javascript function, which gets parameters from a form and then
opens a new form in another window.
The new window also has a javascript function with parameters. My question
is, how can I send the variable values from one function to another in a new
window?

Thanks,
Marco
 
E

Erwin Moller

Marco said:
hi

I have a javascript function, which gets parameters from a form and then
opens a new form in another window.
The new window also has a javascript function with parameters. My question
is, how can I send the variable values from one function to another in a
new window?

Thanks,
Marco

simply by adressing the window first.
You have 2 windows, named window1 and window2.

so if you have a function win2func in window2 and want to call that from
window 1 use:
window2.win2func("hello!");

Of course you'll have to replace "hello!" by some value from one of your
formfields.
 
M

Marco Alting

It's not exactly what I want, I want to pass the variable from window 1 to
window 2 and use it there in a function.


"Erwin Moller"
 
S

son3mendo

It's not exactly what I want, I want to pass the variable from window 1 to
window 2 and use it there in a function.

You could use window.opener.

ciao

gpaolini
 

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
474,085
Messages
2,570,597
Members
47,219
Latest member
Geraldine7

Latest Threads

Top