English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML DOM lastModified Property

HTML DOM Document Object

lastModifiedA read-only property that returns a string containing the date and time of the last modification of the current document.

Syntax:

document.lastModified
var x = document.lastModified;
Test See‹/›

Browser Compatibility

All browsers fully support the lastModified property:

Property
lastModifiedYesYesYesYesYes

Technical Details

Return Value:A string representing the date and time of the last modification of the document
DOM Version:DOM Level3

HTML DOM Document Object