prevent double-click form submit

this handy little snippet will prevent your users from double-clicking a form submission. its quick its easy, and ALL websites should have it. imagine the processing that goes on due to a double clicker who double click's EVERYTHING!

onclick="this.disabled=true;this.form.submit();"

drop that in the end of your submit button.

here is the full code (be sure to put this in between

tags:

<input
      type="submit"
      value="Submit"
      onclick="this.disabled=true,this.form.submit();" />

Comments (Comment Moderation is enabled. Your comment will not appear until approved.)
Serge's Gravatar Yeah! Thanks! Work great, exactly what I need!
# Posted By Serge | 2/14/09 3:39 AM
BlogCFC was created by Raymond Camden. This blog is running version 5.9.2.002. Contact Blog Owner
back to my home page back to my home page my clients my resume about me navtrak - gps tracking