August 1999
Intermediate to advanced
1488 pages
72h 53m
English
document.lastModified
The lastModified property contains the date and time the document was last modified on the server. This property can be very useful when dealing with documents that contain information that is very date-specific. Be careful when using this date because Web servers are not required to provide this timestamp. If the timestamp is not provided, JavaScript will set the lastModified property to midnight, January 1, 1970 (GMT).
The code in Listing 7.140 lists limited discount prices on clothing, starting when the document was last modified.
<html> <center> <h2>LIMITED ... |
Read now
Unlock full access