JS - HTML WebForm Submission - prevent duplicate submit

I've seen some companies that have a mechanism for the SUBMIT button such that if it's already been submitted (in the process of submitting)  and perhaps their internet is slow (or whatever),  clicking a second time shows a message that the form was already submitted, and does not end up with the business receiving a duplicate form.

What is the strategy to accomplish this duplication prevention?

Who is Participating?
Here's one way:

(disables the submit button)

and this one is probably a little closer to what you were looking for:

willsherwoodAuthor Commented:
excellent, THANKS!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.