Displaying Last Modified Timestamp

There are currently two ways to have the last modified timestamps on a page:

- SSI (Server Side Includes)
- Client Side Javascript

To implement the last modified timestamp via SSI, rename the file extension *.html to *.shtml, and simply include the following tag:

<!--#echo var="LAST_MODIFIED" -->

To implement last modified timestamp via Javascript, there will be no need to rename the file extension *.html and simply add the following:

<script language="JavaScript">
<!--
document.write("Last modified: " + document.lastModified);
// -->
</script>

Where you will have the following displayed in your page:

Back to SarawakNet.com