I can set the target of the form to target"blank" and that works fine, it opens in a new window and everything runs beautifully. But that doesn't allow me to change the window size or anything else. Someone suggested <input type=button value="Go" onclick="javascript:window.open('post.pl','','scrollbars,width=500,height=500'); void('');"> but the problems with that are:
1) If I keep the target="blank", I have two windows that open up. If I remove target="blank", the form redirects itself to post.pl in the main window AND opens up in a new window. I just want it to open in a new window and leave the main window alone.
2) In the new onclicked window, I can't get my data to print anymore. I'm thinkink that since it's using JS to open the new window, all the form parameters are lost. Is that true? Anyone have ideas on how to fix this problem?
20040105 Edit by castaway: Changed title from 'To open a form in a new window'
In reply to (OT) To open a form in a new window by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |