Wait! Before you give me the old target=“_blank” line… please read what I’m trying to accomplish.
Basically, I have a form with two submit buttons. One is called “Save”, and the other is “Preview”. I want the “Save” button to submit the form using normal means (replace the current window)… but the “Preview” button must submit the form into a new window.
Here’s the code I have right now. This basically is just two buttons that open the form into the same window. It’s the Save button that I want to open up into a new window only.
Well, assuming you want the new window to simply preview the contents of the form. You can use what weirdbeard posted. All you have to do in previewpage.html is get the form contents of the opener window. Lets say you had a textarea like on this forum.
I do have a similiar problem, 1 form, 4 buttons - with a preview button to preview the form entries. The window.opener is handy but I can’t use it because the contents of the textareas are modified by a PHP-Script (regular expressions etc.).
does neither open a window nor interpret the PHP Script.
A preview in a new window would be a pretty solution. Does anybody have an idea ?