PDA

View Full Version : Controlling another window's properties.


Nagnag
08-06-2005, 08:19 AM
I've looked everywhere for this and can't find anything for what I need..

Here's what I already have: I have a window with a listbox with different options that show different images whenever the listbox is changed, acording to the listbox value. And what I want is to have a link that brings up a popup window where people can see little thumbnails of what the choices are and then they can click the choice and it will change the value in the page it popped up from.

So basically, I want a popup window to control the value of a listbox from the page it came from. Also, will this affect any onChange behaviours I have on the listbox? Thanks guys.

RysChwith
08-08-2005, 08:21 AM
Assuming the second window was opened with JavaScript, I believe you can use window.opener to refer to the first window. So you could get a form element by doing this:window.opener.forms[ 0 ][ "nameofelement" ]If the second window wasn't opened with JavaScript, I'm pretty sure it can't be done.

Rys