|
|
Automatic Time Kept in a Form |
|
|
Automatic Time Kept in a Form |
|
|
JavaScript / Date and Time |
|
|
Click to Visit |
|
|
27 |
|
Automatic Time Kept in a Form can be implemented in your webpage to make use of date objects, manipulating it and updating the form text box every second to display the current time. The script defines each day and month with a string representation for this purpose. The year in this script is pulled out of the TDate object and compared to 2000. If it is less than 2000, then it is a 1900 year with 2 digits as the script has added 1900 to it's value.
|