Use the target attribute on the form, opening a window with
that name and your feature string in the onsubmit handler of the
FORM.
<form action="" method="post"
target="wndname" onsubmit="window.open('',this.target);return true;">
<URL: http://www.htmlhelp.com/reference/html40/forms/form.html>
The complete comp.lang.javascript FAQ is at
http://jibbering.com/faq/
--
The sendings of these daily posts are proficiently hosted
by http://www.pair.com.
> -----------------------------------------------------------------------
> FAQ Topic - How do I POST a form to a new window?
> -----------------------------------------------------------------------
>
> Use the target attribute on the form, opening a window with
> that name and your feature string in the onsubmit handler of the
> FORM.
>
> <form action="" method="post"
> target="wndname" onsubmit="window.open('',this.target);return true;">
That is not the anwer to the topic question.
target="wndname" posts to another, possibly new, window or tab.
target="_blank" posts to a new window or tab every time.
So either change the quetion or the answer.
"FAQ Topic - How do I POST a form to a another or new window or tab?"
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
> Use the target attribute on the form, opening a window with
> that name and your feature string in the onsubmit handler of the
> FORM.
>
> <form action="" method="post"
> target="wndname" onsubmit="window.open('',this.target);return true;">
^^^^^^
The validity of `target` attribute depends on used DTD. I would prefer
to use a little bit different approach.
onsubmit="this.target='wndname';"