Connecting Tech Pros Worldwide Forums | Help | Site Map

FAQ Topic - How do I POST a form to a new window?

FAQ server
Guest
 
Posts: n/a
#1: Nov 15 '06
-----------------------------------------------------------------------
FAQ Topic - How do I POST a form to a new window?
-----------------------------------------------------------------------

You 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 ... target="wndname" onsubmit="window.open('',this.target,'features');r eturn true;">

http://www.htmlhelp.com/reference/ht...orms/form.html


===
Postings such as this are automatically sent once a day. Their
goal is to answer repeated questions, and to offer the content to
the community for continuous evaluation/improvement. The complete
comp.lang.javascript FAQ is at http://www.jibbering.com/faq/.
The FAQ workers are a group of volunteers.


Tim Slattery
Guest
 
Posts: n/a
#2: Nov 16 '06

re: FAQ Topic - How do I POST a form to a new window?


"FAQ server" <javascript@dotinternet.bewrote:
Quote:
>-----------------------------------------------------------------------
>FAQ Topic - How do I POST a form to a new window?
>-----------------------------------------------------------------------
It's a quibble but...

You don't post a form to a window, you post it to a server. Servers
don't know anything about windows. The question here is how to make
the browser open another window for the server's response.
Quote:
>
>You 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 ... target="wndname" onsubmit="window.open('',this.target,'features');r eturn true;">
>
>http://www.htmlhelp.com/reference/ht...orms/form.html
--
Tim Slattery
Slattery_T@bls.gov
Lee
Guest
 
Posts: n/a
#3: Nov 16 '06

re: FAQ Topic - How do I POST a form to a new window?


Tim Slattery said:
Quote:
>
>"FAQ server" <javascript@dotinternet.bewrote:
>
Quote:
>>-----------------------------------------------------------------------
>>FAQ Topic - How do I POST a form to a new window?
>>-----------------------------------------------------------------------
>
>It's a quibble but...
>
>You don't post a form to a window, you post it to a server. Servers
>don't know anything about windows. The question here is how to make
>the browser open another window for the server's response.
True, but the frequently asked question is "How do I POST a form
to a new window">


--

Closed Thread