Webmaster

Tips
All Tips ]

Display the date and time in the status bar

To display the date and time in the status bar of your visitors' browsers, place the following JavaScript between the <HEAD> and </HEAD> tags in your HTML document:

<SCRIPT LANGUAGE="JavaScript">
<!--
function time() {
window.setTimeout("time()",1000);
today = new Date();
self.status = today.toLocaleString(); }
// -->
</SCRIPT>

Then include the following in the <BODY> tag:

<BODY onload="time()">


Discover all Webmaster tips.