Skip to content
Go to file
Cannot retrieve contributors at this time
executable file 13 lines (13 sloc) 582 Bytes
<script type="text/javascript">
//Javascript function that gets called onSubmit. It disables the button and replaces the text with "Please wait...".
function checkForm(form)
form.myButton.disabled = true;
form.myButton.value = "Please wait...";
return true;
<!--- The below form is a basic illustration of a form POST to a website that will not allow the user to click the submit button more than once --->
<form method="POST" action="" onsubmit="return checkForm(this); false;">
<input type="submit" name="myButton" value="Submit">
You can’t perform that action at this time.