469,343 Members | 5,350 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,343 developers. It's quick & easy.

Date as initial form value

Hi!

Using javascript: How to add the client date as a field initial value.

Thanks !!!
--
Facundo
Jul 23 '05 #1
1 1177
Caracol wrote:
Using javascript: How to add the client date as a field initial value.


Using client-side JavaScript and HTML 4.01:

<script type="text/javascript">
document.write(
'<input value="'
+ functionToFormatTheDate(new Date())
+ '">');
</script>
<noscript>
<input>
</noscript>
PointedEars
Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by TekWiz | last post: by
20 posts views Thread by rhino | last post: by
4 posts views Thread by Rethish | last post: by
29 posts views Thread by james | last post: by
21 posts views Thread by Darin | last post: by
3 posts views Thread by Bob Sanderson | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.