referencing elements in a different window

Discussion in 'HTML / PHP / JavaScript / CSS' started by sbaral, Mar 16, 2004.

  1. Hi,

    I want to reference elements of a another window using JavaScript. Is there a way to do it? I have a data entry form on one window and a pick list in a different window. When the user clicks on an item in the picklist I want to transfer the selected value to a text field in the data entry window. This seems like such a simple thing to do but I haven't found a way to do it. Any suggestions will be very helpful. Thank you!
     
  2. I know you can do it when there is a relation between the 2 windows, for instance if you open a new window, then you can communicate between those 2 (if there is no relation, you are blocked by securityrules of the DOM I think). If win1 is the original, wich opens win2, then in win2 you can reference the elements of win1 by using
     
  3. Thank you Sterum! That worked wonderfully.
     

Share This Page