Preventing Double-Clicked Submit Buttons

This works and is compact; the only caveat is if the user uses the back button, the Submit button remains disabled.
<input type='submit' value='Submit' onclick='this.disabled=true;' />


If you would like a reply to your comment, you must leave your email address! We receive dozens of questions every month from people who don't leave us with any way to contact them, so we have no choice but to ignore the question. We try to reply to as many questions as we can, if we know the email address of the person who asked the question. Thanks in advance for writing in :)

Allowed HTML: <b>, <i>, <em>, <strong>. All other < and > will be replaced with &lt; and &gt;.