Hallo Guenter,
wenn ich document.last.Modified lokal benutze ...
in
JavaScript Guide for JavaScript 1.1
hab' ich gefunden:
-----
document
Implemented in
Navigator 2.0
Tainted?
Yes
Description
The lastModified property is derived from the HTTP header data sent by the web server. Servers
generally obtain this date by examining the file's modification date.
The last modified date is not a required portion of the header, and some servers do not supply it. If
the server does not return the last modified information, JavaScript receives a zero, which it displays
as January 1, 1970 GMT. The following code checks the date returned by lastModified and prints
out a value that corresponds to unknown.
lastmod = document.lastModified // get string of last modified date
lastmoddate = Date.parse(lastmod) // convert modified string to date
if(lastmoddate == 0){ // unknown date (or January 1,
// 1970 GMT)
document.writeln("Lastmodified: Unknown")
} else {
document.writeln("LastModified: " + lastmod)
}
lastModified is a read-only property.
Examples
In the following example, the lastModified property is used in a <SCRIPT> tag at the end of an
HTML file to display the modification date of the page:
document.write("This page updated on " + document.lastModified)
-----
Klaus