[whatwg] [Input type=submit] "Disable" after submitting

Adam Shannon ashannon1000 at gmail.com
Tue Jan 26 05:40:15 PST 2010


I'm sure you know this, but there is always this simple way.

<input type="submit" value="Submit" onclick="this.disable=true;" />

On Tue, Jan 26, 2010 at 04:20, Randy Drielinger <Randy at prowebdesign.nl> wrote:
> Hi all,
>
> Bit of a crazy subject, but let me enlighten:
>
> Currently the submit button is used to submit a form once (more than average
> purpose). In some occassions it's possible to submit a form twice, and get
> it processed twice by the webserver, resulting in a double submit (e.g.
> forum post). For this specific example, it isn't desired bahavior.
>
> Should there be a way to prevent a (submit) button in HTML to be clicked
> more than once or is this clearly a behavior (and therefore be solved with
> JS)?
>
>
> Regards



-- 
Adam Shannon
 Web Developer
 http://ashannon.us


More information about the whatwg mailing list