|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
child and parent window
I have a link on a parent window that opens a small popup with a short form... now I need to have the small window (child) pass one form variable to another form in the parent window when the user clicks a button... how could I do this?
|
|
#2
|
||||
|
||||
|
Using the Document Object Model (DOM)
From the child window, use the window.opener property to pass back form variables. E.g. Code:
// this code goes in the child window varSurname = document.frmName.txtSurname.value window.opener.document.frmName.txtSurname.value = varSurname |
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > child and parent window |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|