471,887 Members | 1,407 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,887 software developers and data experts.

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 1192
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

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.