Thursday, December 20, 2007

submit forms to a new window, with window.open() features

you can just set up your form tag like this:

target=_blank
action=whatever.asp>

However, some would like to submit their forms to a new window that they have a little more control over.

This is not really an ASP issue, as the solution could be used in any web-based technology (including plain HTML). However, here is a way to submit a form to a new window, and have control over parameters like width, height, toolbar, etc.:

//
// method=post
// action=whatever.asp
//target=myNewWin>
/
//
/
// // value=' Submit '
// onClick='sendme();'>
//


No comments: