[thelist] 2 targets for a form

Peter-Paul Koch gassinaumasis at hotmail.com
Fri Feb 22 16:42:00 CST 2002


>another pretty dumb question: if I have a form with 2 submit buttons in it,
>can I have these go to two different target pages?

Sure.

<INPUT TYPE=submit> // normal submit button, submits to action of form

<INPUT TYPE=submit onClick="this.form.action='otherpage.html'">
// first change the action of the form, then submit

ppk

_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com




More information about the thelist mailing list