Submit form once, disable submit, then go back & enable it??
Posted: Fri Jan 15, 2010 12:33 pm
How can I make this code disable the submit button once it has been pressed, then if the user hits back or GOES back, it will re-enable it again?
Thanks!
ShadowIce~
Code: Select all
<SCRIPT LANGUAGE="JavaScript" TYPE="text/JavaScript">
function formControl(submitted)
{
if(submitted=="1")
{
commentForm.Submit.disabled=true
alert("Thanks for your comments!")
}
}
</SCRIPT>ShadowIce~