ShadowIce Posted January 15, 2010 Share Posted January 15, 2010 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? <SCRIPT LANGUAGE="JavaScript" TYPE="text/JavaScript"> function formControl(submitted) { if(submitted=="1") { commentForm.Submit.disabled=true alert("Thanks for your comments!") } } </SCRIPT> Thanks! ShadowIce~ Link to comment https://forums.phpfreaks.com/topic/188595-disable-submit-when-clicked-and-when-you-go-back-re-enable-it/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.