Forum Moderators: open
<p class="credit"><a href="#top">Return to top</a><br><br><script type="text/javascript">
<!--
document.write("Last Modified " + document.lastModified)
// -->
</script></p>
I don't understand javascript. I just copy things from help pages.
It should work fine on static HTML pages, if the server sends a correct Last Modified header. Most servers do, but some don't.
It will normally show today's date on dynamic pages, like PHP or ASP. Such pages are created on the fly, so unless you send a fake Last Modified header, the current timestamp will be sent.
HTTP/1.1 200 OK
Date: Tue, 16 Aug 2005 06:51:06 GMT
Server: Apache
Vary: Accept-Encoding
Last-Modified: Fri, 01 Nov 2002 06:34:32 GMT
[..]
That shows the Last-Modified timestamp that the javascript will use. If it is incorrect, alert the system administrator.