VOOZH about

URL: https://www.geeksforgeeks.org/html/html-dom-lastmodified-property/

⇱ HTML DOM lastModified Property - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

HTML DOM lastModified Property

Last Updated : 11 Jul, 2025

The DOM lastModified property in HTML is used to return the date and time of the current document that was last modified. This property is read-only. This property returns a string that contains the date and time when the document was last modified. 

Syntax:

document.lastModified

Example: In this example, we will use the lastModified property

Output:

👁 Image

Supported Browsers: The browser supported by DOM lastModified Property are listed below:

Comment