Prevent Double Submit


/ Published in: HTML
Save to your folder(s)

Prevent people from resubmitting a form by accident


Copy this code and paste it in your HTML
  1. <script type='text/javascript'>
  2. <!--
  3. document.write("<INPUT TYPE='button' NAME='Submit'
  4. VALUE='Submit Secure Order' onClick=\"if(this.value ==
  5. 'Submit Secure Order') this.form.submit();
  6. this.value = 'Working...Please Wait.';\">");
  7. // -->
  8. <INPUT TYPE='submit' NAME='Submit' VALUE='Submit Secure Order'>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.