This is not a specific Perl problem but it relates, so please bare with me. How do I set a form button or form action to open in a new pre-sized/scrollbarred window?

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

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.