title: Javascript window with passback parameters after close
body: <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 noreferrer">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="https://stackoverflow.com/questions/1093313/make-onclick-event-stick-after-page-reload">here</a>.</p>