As the question says...i want my "submit" button in my form to open a new window instead of go to another page...any ideas?
| SitePoint Sponsor |





As the question says...i want my "submit" button in my form to open a new window instead of go to another page...any ideas?
I am guessing this would be done using some Javascript for the onClick event.
ssegraves [at] gmail.com
On Image Use, Abuse, and Where We're Headed
stephan | XMLHttpRequest Basics
flickr | last.fm | Cogentas, LLC
If you're working in XHTML strict mode yes. However, if you're going Transitional/loose, this will work:Originally Posted by Hartmann
HTML Code:<form target="_blank" action="page.html">
You can also:
1) Set the <form....target="some_window_name".....> to a specific window name.
2) Call a function: <form.....onsubmit="return function_name()">
3) In that function, open a blank window with that same name: window.open('about:blank', 'some_window_name', 'features...');
4) Put return true; at the end of the function.
This opens a targetable window - you can configure it as you like - and the form will open in it. Same validity situation as above.
::: certified wild guess :::
Bookmarks