Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap

Q344 How can I place the date and time that a form was displayed into a hidden form field?

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

Try this:

<FORM NAME="formname">
<INPUT TYPE="HIDDEN" NAME="hiddenname">

<SCRIPT LANGUAGE="JavaScript"><!--
var now = new Date();
document.formname.hiddenname.value = now;

©2018 Martin Webb