The following JavaScript in your page will show the Last Modified date/time of the page:

<script>
document.write(document.lastModified);
</script>

Here is a sample of the output…

07/10/2014 15:23:21

Note that you can format the appearance simply by wrapping the usual font tags around the scriptlet, like this:

<font size="2" face="Verdana,Arial" color="#FF0000">
<i>
<script>
document.write(document.lastModified);
</script>
</i>
</font>

Note that in pages with dynamic content — such as this page, with dynamically delivered ads — the datetime stamp changes each time the page is loaded, since the document has, effectively, been changed on each reload with the new ad content.

Posted in: Java

Related FAQ's

Marius Ion ANGEL HOT SOFT LLC (800) 316-7677