tags:

views:

72

answers:

1

How can I pass back some arguments from a window that is closed?

For example Insert file dialog in TinyMCE does this. When file is selected the url is pasted into editor. (The url is passed back to the main window)

I am using Prototype fyi, if that helps.

PS: I rephrased this question to better describe my requirements here.

+1  A: 

Use window.open('myPage.htm') to launch your popup.

Then within myPage.htm you can use opener to reference the parent window before closing...

opener.document.getElementById('yourDiv').innerHTML = 'Look at me!';
self.close();
Josh Stodola
opener? really?
drozzy
You betcha! I just updated my answer, added a link for reference.
Josh Stodola