Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
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'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (OT) To open a form in a new window
by fruiture (Curate) on Jan 04, 2004 at 13:38 UTC | |
by Anonymous Monk on Jan 04, 2004 at 14:13 UTC | |
by fruiture (Curate) on Jan 04, 2004 at 14:23 UTC | |
|
Re: (OT) To open a form in a new window
by bart (Canon) on Jan 04, 2004 at 21:39 UTC | |
|
Re: (OT) (OT) To open a form in a new window
by sulfericacid (Deacon) on Jan 04, 2004 at 13:12 UTC |