HTML DOM lastModifiedProperty

Document 对象参考手册Document Object

Definition and Usage

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

Syntax

document.lastModified


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

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>

Try it Yourself »


Document 对象参考手册Document Object Other Extensions