Here are some pieces of javascript code.This one reads the last time the file was saved and displays it
<SCRIPT language=javascript>document.writeln("Last Updated on " + document.lastModified);</SCRIPT>
This useful and idea for a news page as readers can see when you last updated the file
<SCRIPT language=javascript>document.writeln("File Location = " + document.location);</SCRIPT>
<SCRIPT language=javascript>document.writeln("Title " + document.title);</SCRIPT>This does not work with all browsers and on Internet Explorer may come up and ask you if you want to view blocked content?
Source Code
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Author" content="nik">
<meta name="GENERATOR" content="Mozilla/4.8 [en] (Windows NT 5.0; U) [Netscape]">
<meta name="Description" content="some simple useful java comands">
<meta name="KeyWords" content="java,script,htm,html,web,www,internet,edit">
<title>HTML JAVA SCRIPT</title>
<link rel="shortcut icon" href="favicon.ico" >
</head>
<body text="#000000" bgcolor="#FFFF99" link="#0000EE" vlink="#551A8B" alink="#FF0000">
<script language=javascript>document.writeln(" Last Updated on " +
document.lastModified);</script><center> <font size=+4> Java Script</font></center>
<blockquote> Here<font size=+1> are some pieces of javascript code.</font>
<p><font size=+1>This one reads the last time the file was saved and displays
it</font>
<p><script language=javascript>document.writeln("Last Updated on " +
document.lastModified);</script><br><font color="#000000"><SCRIPT language=javascript>document.writeln("Last
Updated on " + document.lastModified);</SCRIPT></font>
<br><font color="#000000">This useful and idea for a news page as readers
can see when you last updated the file</font>
<p><script language=javascript>document.writeln("File Location = "
+ document.location);</script><br><SCRIPT language=javascript>document.writeln("File Location = "
+ document.location);</SCRIPT>
<p><script language=javascript>document.writeln("File Title is " +
document.title);</script><br><SCRIPT language=javascript>document.writeln("Title " + document.title);</SCRIPT>
<p>This does not work with all browsers and on Internet Explorer may come
up and ask you if you want to view blocked content?
<center>
<p><a href="index.htm"><img SRC="but_home.gif" ALT="Home" BORDER=0 title="Home" height=32 width=128></a></center>
</blockquote></body>
</html>