Go to this page here and click on the LOG IN page at the top and then click the SUBMIT button, when you click the button the value changes to Please wait... and there is a pause and then the server script is run, I think ASP is run, anyways...
How did they do that!?!!?
How Did They Do That?
Moderator: General Moderators
Code: Select all
<input type="submit" onclick="javascript:disableAndSubmit(this);" onkeypress="javascript:disableAndSubmit(this);" name="SUBMIT" value="SUBMIT" accesskey="S">- nickman013
- Forum Regular
- Posts: 764
- Joined: Sun Aug 14, 2005 12:02 am
- Location: Long Island, New York
This is just from the source.
The JavaScript
The Submit Button
The JavaScript
Code: Select all
<script language="Javascript" type="text/javascript">function disableAndSubmit(theButton)
{
theButton.value="Please Wait...";
theButton.disabled = true;
theButton.className = "buttonPress";
theButton.form.submit();
}
</script>Code: Select all
<input type="submit" onclick="javascript:disableAndSubmit(this);" onkeypress="javascript:disableAndSubmit(this);" name="SUBMIT" value="SUBMIT" accesskey="S">