I've used the following script to add the time and date on which a particular file was last saved to my pages. To use this script, simply copy the text from this page and insert it into your document at the point where you want to show the last modified date. No functions are involved. I've included text with the script to show how it might appear on your pages:
last modified:
<script language="JavaScript">
<!-- hide script from old browsers
document.write(document.lastModified)
// end hiding contents -->
</script>
The text appears as:
|