Another way is to access the information directly from the "Parent" window. and place the values in a div tag
so if you had a couple of divs on the preview page
at the end of the page you can asign to each of the divs the value from the opener from
document.all['aDIV1'].innerHTML = window.opener.window.form2.YOURCONTROLNAME.value;
document.all['aDIV2'].innerHTML = window.opener.window.form2.YOUROTHERCONTROLNAME.va lue;
But with either of these i can not see a need to
quote:will get the data in form1 and store them in hidden fields in form2
Your getData() function can just open the window in whatever style you like then the js
can fill in the blanks.
Im not sure what you mean by
quote:pass html tags into the query string
But if the tags are part of YOURCONTROLNAME then they will become part of the div as well rendered as they should in html.
They say, best men are moulded out of faults,
And, for the most, become much more the better
For being a little bad.