Find the Data a Web Page Was Modified

 

Ever wish that you knew what date a Web page was last modified. There is a simple method. Once you have the page open, replace the address that is on the location bar with the following and tap the Enter key.

javascript:alert(document.lastModified)

There are a few caveats that I have discovered:

1) If the page is one that generates on the fly, that is, every time you access it, information is pulled from other places, the date you get in return will be today's date and time.
2) If a site uses a page template, that is each page is created with a template that has fixed information on it, and the template is updated the affected files are also updated. In this case you will receive the date that the template of the affected pages was updated. What this means is that this page is still on the Web site, but whether anyone is aware that it is still there, or that it is current, is another story.

Use the trick with a bit of "caveat emptor."

Created May 2008

 

Buy the book