Can you use Javascript to put date/time into form input onload?
<p>I am trying to put the date and time into a form field onload.  Am I doing something wrong here, I can't get it to work.  Here is my code:</p>

<pre><code>&lt;HEAD&gt;
&lt;script type="text/javascript"&gt;
            function updateData()
            {
                var cl_dt=new Date();
                document.getElementByName("lastpost_cl").value=cl_dt;
            }
&lt;/script&gt;
&lt;/HEAD&gt;

&lt;BODY onLoad="updateData();"&gt;

&lt;form id="FormName" action="updated.php" method="post" name="FormName"&gt;
&lt;input id="lastpost_cl" name="lastpost_cl" type="text" size="25" maxlength="255"&gt;
</code></pre>
