Posted: Tue Oct 09, 2007 7:20 pm Post subject: Disable Buttons On Click
Say that you have an email form on your site, but one of your users accidentally hits the button twice and, therefore, sends two emails. This tutorial will show how to stop that from happening.
Place this code between the "<head>" tags of your page:
Code:
<script language=”JavaScript” type=”text/javascript”>
function dis(a){
a.disabled = “disabled”;
}
</script>
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum