Welcome to WebmasterWorld Guest from 126.96.36.199
Forum Moderators: open
You can do this if one of the windows opened the other.
Let's suppose that you have a page called js_opener.htm that contains a function to open another page called js_opened.htm:
//initialize myWindow as a global variable
//myFunction opens a new window
Once the function has been called and the page opened, you have a variable reference to the window. This means that you could have code like:
on js_opener.htm which would set the value of the myTextbox object on js_opened.htm.
Conversely, you can have the opened page act upon the opening page using the 'opener' reference.
From the opened page, you can have code like:
window.opener.document.forms.myOpenerPageTextbox.value='Hey, this works!'
which would set the value of the myOpenerPageTextbox object on js_opener.htm.
Hope this helps!