Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q266 How can I clear the form field values after the user has submitted the form for client side processing?

You are here: irt.org | FAQ | JavaScript | Form | 9 | Q266 [ previous next ]

<SCRIPT LANGUAGE="JavaScript"><!--
function mySubmit() {
    setTimeout('document.myForm.reset()',2000);
    return false;
}
//--></SCRIPT>

<FORM NAME="myForm" onSubmit="return mySubmit()">
<INPUT TYPE="INPUT">
<INPUT TYPE="SUBMIT">
</FORM>

Feedback on 'Q266 How can I clear the form field values after the user has submitted the form for client side processing?'

©2018 Martin Webb