JavaScript Tutorial/Document/lastModified

Материал из Web эксперт
Перейти к: навигация, поиск

Display document.lastModified

<html>
<head>
<title>A Simple Page</title>
<script language="JavaScript">
<!--
//  -->
</script>
</head>
<body>
<SCRIPT language = "JavaScript">
<!--
document.write("Last updated: " + document.lastModified)
//-->
</SCRIPT>
</body>
</html>


document.lastModified

The lastModified property contains the date and time the document was last modified on the server.



<html>
    <script language="JavaScript">
    <!--
    document.write("Starting ",document.lastModified," the following ");
    -->
    </script>
    </html>