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

Q571 How can I store the current date in a hidden form field?

You are here: irt.org | FAQ | JavaScript | Date | Q571 [ previous next ]

Try:

<form name="formname">
<input type="hidden" name="fieldname">
</form>

<script language="JavaScript"><!--
document.formname.fieldname.value = new Date();
//--></script>

©2018 Martin Webb