![]() |
| Date Page Modified Javascript |
| All the pages on this site display the date that the page was last modified. This is achieved by inserting the following code in the page. |
<script language="javascript">
// create a date variable of the documents modified date
var d = new Date(document.lastModified)
// convert first 16 chars to string
d = d.toUTCString().substr(0,16);
// write the string out
document.write("page last updated on " + d)
</script>
|