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

// December 20th, 2007 // Uncategorized

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.

5 Responses to “Find out the last modified date of the web page you are viewing”

  1. Wendy Golski says:

    works on Firefox… not on Safari

  2. David says:

    Works OK on Firefox but not on IE7

  3. AnilVT says:

    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 :)

  4. Mr.Rcollins says:

    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.

  5. Cerniuk says:

    try bookmarking this instead:

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

Leave a Reply

Powered by Web Design Company Plugins