Javascript window with passback parameters after close
<p>How can I pass back some arguments from a window that is closed?</p>

<p>For example <a href="http://tinymce.moxiecode.com/examples/full.php" rel="nofollow">Insert file</a> dialog in TinyMCE does this. When file is selected the url is pasted into editor. (The url is passed back to the main window)</p>

<p>I am using Prototype fyi, if that helps.</p>

<p>PS: I rephrased this question to better describe my requirements <a href="http://stackoverflow.com/questions/1093313/make-onclick-event-stick-after-page-reload">here</a>.</p>
