I've read many ways to do this, such as disabling buttons, using a unique guid/token, comparing duplicate form values, or doing something like:
var form_submitted = false;
function submit_form ( )
if ( form_submitted )
alert ( "Your form has already been submitted. Please wait..." );
form_submitted = true;
So what is the best way to stop double submitting and doing it well for every kind of user?