Duplicate submission from automatic javascript forms

We are getting lot of duplication submission from automatic javascript form. We suspect because of folks habit of double clicking on a button due to how Windows require double clicking on many of it apps it causing the same submission to be submitted twice to us.

We even added a redirect hoping that forcing them to redirect to a homepage would prevent double submission.

Is there a way to set submit button to ignore the second click and remaining clicks for next few seconds giving javascript time to redirect the visitor to homepage after they submitted the form by double clicking the button?

It’s getting annoying … There been a few rare time when I gotten 3 same submission!