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?

[Webinar] Streamline your web hosting managementRegister Today

callrsConnect With a Mentor Commented:
<form target="_blank">
<input  type=submit onclick="this.disabled=true">
Andrew AngellCo-Owner / DeveloperAuthor Commented:
well that was amazingly easy.  thanks!
All Courses

From novice to tech pro — start learning today.