The time may come when you want to open up some sort of popup window,
pass data into it, and pass data out of it back to the window opener.
This task can be accomplished in three easy steps.
First, make a ghost form that will be used to pass data into the popup.
|<form name=ghost method=post target="the_target_window" action="/the/destination.php">|
<input type=hidden name="data" value="">
document.ghost.data.value = document.other_form.text_area.value;
TgtWindow = window.open('', 'the_target_window', 'attributes=go_here');
Now you can use window.opener to get back to the parent. Set whatever data
a "Save" style of button to send the reformatted text back to the original
|window.opener.document.other_form.text_area.value = "altered state";|