HTML DOM lastModifiedProperty
Document Object
Definition and Usage
The lastModified property returns the date and time the document was last modified.
Syntax
document.lastModified
Browser Support
![]()
![]()
![]()
![]()
![]()
All major browsers support the lastModified property.
Examples
Examples
Return the date and time the document was last modified:
<html>
<body>
The date and time the document was last modified:
<script>
document.write(document.lastModified);
</script>
</body>
</html>
<body>
The date and time the document was last modified:
<script>
document.write(document.lastModified);
</script>
</body>
</html>
Try it Yourself »
Document Object Other Extensions