JavaScript Source Code 3000: Forms: Submit Changer
Submit Changer
Changes the caption of the form's submit button while the form is being submitted. This helps eliminate the confusion that can sometimes occur when a form takes quite a while to be processed by the server.
Name:
JavaScript Source Code 3000: Forms: Submit Changer
Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as Note Pad or Simple Text) and save (Control-s or Apple-s). The script is yours!!!
<!-- TWO STEPS TO INSTALL SUBMIT CHANGER:
1. Copy the coding into the HEAD of your HTML document
2. Add the last code into the BODY of your HTML document -->
<!-- STEP ONE: Paste this code into the HEAD of your HTML document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Mike Fernandez -->
<! >
<! >
<!-- Begin
function submitForm(s) {
s.value = " Sending... ";
return true;
}
// End -->
</script>
</HEAD>
<!-- STEP TWO: Copy this code into the BODY of your HTML document -->
<BODY>
<center>
<form name=myform onSubmit="return submitForm(this.submitbutton)">
Name: <input type=text name=firstname size=20>
<input type=submit name=submitbutton value="All Done">
</form>
</center>
<!-- Script Size: 0.87 KB -->