Displaying the Last Modified Date within a Web Page
Monday, July 14th, 2008If you would like to display the last modified date on your web page, place the following code within the HTML of your web page where you would like the date to appear.
Example:
This page was last modified on: 06/18/2008 04:45:20
Last Modified HTML Code:
<script language=”Javascript”>
document.write(”This page was last modified on: ” + document.lastModified +”");
</SCRIPT>
Change the text indicated in red to whatever you’d like.
If you would like to use this JavaScript code to display your web page’s last modified date, it is probably best to place the code toward the bottom of your web page.