Disable Submit Button On Form Submission

Written by Zac Vineyard

Web developers don't use this trick every day, but it can be very useful. When you want to prevent users from mashing the submit button on a form, use this little JavaScript OnSubmit snippet to help you out. All the magic happens in the form tag.