Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM lastModified property

HTML DOM lastModified property

Document Object Reference Document Object


Definition and Usage

The lastModified property returns the date and time when the document was last modified.

Syntax

document.lastModified


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the lastModified property.


Example

Example

Return the date and time when the document was last modified:

The date and time when the document was last modified:

Try it »


Document Object Reference Document Object