|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I'm having trouble when my users are submitting a form. While the confirmation screen is loading they get impatient and click on the submit button again. I have code in there to prevent them from double clicking on it but would rather disable the submit button all together if that's possible.
Any and all help would be appreciated. Steve |
|
#2
|
||||
|
||||
|
<script>
var xx=0; function stopit(){ if(x==1){alert("stop it that hurts!");x=1;return false;} else {x=1;return true;} } </script> <form onSubmit="return stopit()" etc....> Only submits once per page view. ------------------ Simon Wheeler FirePages -DHTML/PHP/MySQL |
|
#3
|
|||
|
|||
|
I had come to a similar conclusion. I was able to physically disable the button for IE but not for netscape. We just disabled the ability to submit twice.
Thanks for help! Steve |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > Disabling a Submit Button as an Onclick Event |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|