ASP Programming | ASP Web Pro
  Active Server Pages Programming by ASP Web Pro

JavaScripts

DATE / TIME ON STATUS BAR

This script will display the current day of the week, month, date, year, hour, minutes, seconds, and AM or PM in your Status Bar like this:

Thursday, May 10, 2001 10:45:01 AM

<HTML><HEAD>
<TITLE>ASP Web Pro</TITLE>

<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function runClock() {
theTime = window.setTimeout("runClock()", 1000);
var today = new Date();
var display= today.toLocaleString();
status=display;
}
// End -->
</SCRIPT>

</HEAD>

<BODY onLoad="runClock()">

The rest of your page.

</BODY>
</HTML>

< Back to JavaScripts


 

 

Main Menu
Home
ASP Scripts
ASP Tutorials
JavaScripts
Awards
Contact Us

Email This Page

Other Resources
ASP Web Hosting
Search Engine Submission
Programming Help

 

 

 

Other ASP Web Sites

Site Map

 

Last Updated:
21 March 2010