Your Ad Here

Posted By

kitzelh on 10/16/09


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

jmiller


Prevent Double Submit


 / Published in: HTML
 

Prevent people from resubmitting a form by accident

  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  

You need to login to post a comment.