Re: help with onclick submit
John said:[color=blue]
>
>
>"Lee" <REM0VElbspamtr ap@cox.net> wrote in message
>news:dhf78d04f 5@drn.newsguy.c om...
>[color=green]
>> Well, if you're not actually submitting anything, don't freaking use
>> a submit button. Use a regular button.
>>[/color]
>
>It *is* submitting something, an email address. But if the email address is
>"email" I want it blank.[/color]
If you're submitting, and you want something to happen first, and/or
you want the submission to be cancelled under certain circumstances,
then use the onsubmit handler of the form. Do NOT use the onclick
handler of the submit button.
John said:[color=blue]
>
>
>"Lee" <REM0VElbspamtr ap@cox.net> wrote in message
>news:dhf78d04f 5@drn.newsguy.c om...
>[color=green]
>> Well, if you're not actually submitting anything, don't freaking use
>> a submit button. Use a regular button.
>>[/color]
>
>It *is* submitting something, an email address. But if the email address is
>"email" I want it blank.[/color]
If you're submitting, and you want something to happen first, and/or
you want the submission to be cancelled under certain circumstances,
then use the onsubmit handler of the form. Do NOT use the onclick
handler of the submit button.
Comment