Site hosted by Angelfire.com: Build your free website today!




 
Want to add the current date and time to your page when it greets your visitors? This script is short and it prints the current info on the page when your visitor clicks on..

The Script!!

<script language="javascript">
// Define todaysDate function
function todaysDate() {
var Today = new Date();
document.writeln('<FONT FACE="Arial,
Helvetica"><FONT SIZE=-1><FONT
COLOR="red">'+"Date and Time: "+Today+'
</FONT>
</FONT>
</FONT>');
}
// Print todaysDate
todaysDate();
</SCRIPT>


Back to Menu