Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

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

irt.org | Knowledge Base | JavaScript | Form 9 | Q266 [ previous next ]

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

<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?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.