How to disable submit button once it's clicked....???

I'd like to disable the submit button for my forms once it's pressed to avoid problems when the user double clicks it or gets impatient and clicks again after waiting a moment.

Any information I can get on this would be greatly appreciated.  Thanks!
LVL 11
Andrew AngellCo-Owner / DeveloperAsked:
Who is Participating?
<form target="_blank">
<input  type=submit onclick="this.disabled=true">
Andrew AngellCo-Owner / DeveloperAuthor Commented:
well that was amazingly easy.  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.