|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
[JAVASCRIPT] Referencing parent window, from child spawned window
I was wondering how I would go about referencing back to the parent window after I had spawned a child window.
Example <parent.htm> open a new window name is "child.htm" <child.htm> ok I have finished what I was doing now close and send value back to parent.htm. So how do I reference parent.htm now? I thought maybe after I spawn the child.htm I also have a variable parentWindow in child.htm that I set on the next line. this seems a bit messy to me. Isn't there a way to find out where child.htm got spawned from? Your thoughts. |
|
#2
|
|||
|
|||
|
Opener
Use "opener" instead of "parentWindow"
opener.variablename opener.functionname opener.document.form.formfield.value etc. |
|
#3
|
|||
|
|||
|
That's works great.
Thankyou. Nichoals Orr |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Programming Tools > [JAVASCRIPT] Referencing parent window, from child spawned window |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|