document last Modified Property in Another Format : Document « Development « JavaScript DHTML
- JavaScript DHTML
- Development
- Document
document last Modified Property in Another Format
<HTML>
<HEAD>
<TITLE>Time Stamper</TITLE>
</HEAD>
<BODY>
<SCRIPT LANGUAGE="JavaScript">
update = new Date(document.lastModified)
theMonth = update.getMonth() + 1
theDate = update.getDate()
theYear = update.getFullYear()
document.writeln("<I>Last updated:" + theMonth + "/" + theDate + "/" + theYear + "</I>")
</SCRIPT>
<HR>
</BODY>
</HTML>
Related examples in the same category