Javascript Reference
Categories: document

javascript document lastModified

@March 15, 2008, 1:22 a.m.
lastModified Firefox/Netscape/NN 2 IE 3 Chrome/Safari/DOM n/a

Read-only

Provides the date and time (as a string) on which the server says the document file was last modified. Some servers don't supply this information at all or correctly. Non-Windows browsers also tend to have a rough time interpreting the information correctly. Only in recent browsers is the date string in a form suitable as a parameter for a Date object constructor.

 
Example
 
document.write(document.lastModified);
 
Value

String representation of a date and time.

 
Default

None.


Powered by Linode.