// you’re reading...

Find out the last modified date of the web page you are viewing

Here’s a trick I just learned:

Javascript Bonus: Curious about when the page you’re on was last updated? Just type javascript:alert(document.lastModified) in the address bar and press Enter to see the date and time in a pop-up window.

And here’s a link (Last Modified) can drag to your toolbar. Once there, you can click on it on any page.

Discussion

5 comments for “Find out the last modified date of the web page you are viewing”

  1. works on Firefox… not on Safari

    Posted by Wendy Golski | January 8, 2008, 10:16 pm
  2. Works OK on Firefox but not on IE7

    Posted by David | January 12, 2008, 10:29 am
  3. Ryan, this doesn’t work at all. While it does show the date – IMO it’s the date and time when this page was last downloaded on my system; and NOT the real last modified date of the webpage. I tested with a page on my site updated last year, but it shows current date. Does that make sense? Check it for yourself :)

    Posted by AnilVT | March 27, 2008, 3:34 am
  4. I don’t think it works with dynamically generated pages, such as this blog, as a matter of fact! I tried it with wikipedia, and it shows a date modified of March 25th for the entry on volcano, but the history shows a date of the last modification as of March 22.

    That link uses javascript to get the last modified, I guess I’ll need to research into where exactly that date comes from.

    Posted by Mr.Rcollins | March 27, 2008, 8:14 am
  5. try bookmarking this instead:

    javascript:alert(Date(Date.parse(document.lastModified)))

    Posted by Cerniuk | December 4, 2009, 8:16 pm

Post a comment