Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
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;
}
</script>
<!--- 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="https://www.mygateglobal.com" onsubmit="return checkForm(this); false;">
<input type="submit" name="myButton" value="Submit">
</form>