Disallow Multiple Click on Submit (Rated 0)Description:
If the value is submit, submit the form. Then, change the value to 'Wait' so it does not submit again. Code starts here
<script language="javascript">
function domyfunc(obj) {
// If the value is submit,
// submit the form. Then,
// change the value to 'Wait'
// so it does not submit again.
if(obj.value == "Submit")
obj.form.submit();
obj.value = "Wait!";
}
</script>
<input
type="Button"
Name="Submit"
Value="Submit"
onClick="domyfunc(this)">
Submitted by Devscripts on 24-02-2003 12:13 |