Automatic Date Generator

C

carmen

Nancy:

Insert the following code between your <BODY> tags:


<SCRIPT LANGUAGE="javascript">
//This script posts the date + time you entered the page
RightNow = new Date();

document.write("<FONT COLOR='GREEN'>Today's date is " +
(RightNow.getMonth()+1+"/")+ RightNow.getDate() + "/" +
RightNow.getFullYear() + ".You entered this Web Page at
exactly: " + RightNow.getHours() + ":" +
RightNow.getMinutes() + " and " + RightNow.getSeconds()
+ " seconds.")
</SCRIPT>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top