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

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">
</FORM>

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

©2018 Martin Webb