|
Sunday, 17 June 2007 |
Let's say you have some content you update frequently.
Wouldn't it be nice to timestamp the most recent update on your pages?
Well, here's how:
Displaying automatic page update information
<HTML> <HEAD></HEAD> <TITLE> Displaying Update Info</TITLE> <BODY bgcolor=ffffff> <script language="JavaScript"> <!--hide script from old browsers document.write("<h2>This page has been updated: " + document.lastModified + "</h2>"); // end hiding --> </script> </BODY> </HTML>
All you needed to do here is use the lastModified property
of the document. That's all!
|