Here's what i got. When you click submit, the button becomes disabled and the text changes to Loading... Please Wait. What I need to know is how to have it countdown 5 seconds and display the 5,4,3,2,1...
CODE
<script language="JavaScript" type="text/javascript">
<!--
function GoToStepTwo()
{
window.signupform.Submit.value="Loading... Please Wait...";
**(COUNTDOWN WOULD GO HERE)**
StepOne.className = 'hideMe';
StepTwo.className = '';
}
// -->
</script>
and then the form
CODE
<form method="post" action="http://www.somesite.com" name="signupform" target="iframe" onsubmit=window.signupform.Submit.disabled=true;GoToStepTwo()>
*STUFF*
<input type="submit" id="submitbutton1" name="Submit" value="Step 1" alt="Next">
</form>
So, what I need to figure out is how to do a countdown with Javascript, and display the button accordingly:
CODE
window.signupform.Submit.value="Loading... $seconds seconds left...";
Or something similiar to that nature. I am a noob at javascript and need your help! If you know of a tutorial that covers somethign like this or another post i missed, please point me to it!
Thanks!
This post has been edited by nanascalala: 28 Aug, 2005 - 10:02 AM