JavaScript DOM own property: lastModified
[this page | pdf | back links]
The lastModified
property of the JavaScript
DOM returns the
date and time the document was last modified.
EXAMPLE:
HTML USED IN THIS EXAMPLE:
<!DOCTYPE html>
<html> <!-- Copyright (c) Nematrian Limited 2018 -->
<head></head>
<body>
<a id="x1" href="http://www.nematrian.com/Introduction.aspx">Website Introduction</a><br>
<a id="x2" href="http://www.nematrian.com/HTMLCSSJSTutorial.aspx">HTML/CSS/JavaScript Tutorial</a><br>
<a id="x3">Link without an href attribute set</a><br><br>
<span id="x0"></span>
<script>
var n0 = document.getElementById("x0");
n0.innerHTML = "Document properties include:<br>"
+ "baseURI = " + document.baseURI + "<br>"
+ "body = " + document.body + "<br>"
+ "cookie = " + document.cookie + "<br>"
+ "docType = " + document.cookie + "<br>"
+ "documentElement = " + document.documentElement + "<br>"
+ "documentMode = " + document.documentMode + "<br>"
+ "domain = " + document.domain + "<br>"
+ "domConfig = " + document.domCOnfig + "<br>"
+ "embeds = " + document.embeds + "<br>"
+ "forms = " + document.forms + "<br>"
+ "head = " + document.head + "<br>"
+ "images = " + document.images + "<br>"
+ "implementation = " + document.implementation + "<br>"
+ "inputEncoding = " + document.inputEncoding + "<br>"
+ "lastModified = " + document.lastModified + "<br>"
+ "readyState = " + document.readyState + "<br>"
+ "referrer = " + document.referrer + "<br>"
+ "URL = " + document.URL + "<br>"
</script>
</body>
</html>
|
NAVIGATION LINKS
Contents | Prev | Next | JavaScript DOM (and BOM)