URL Hack to See When Page Was Last Updated

I love quick little useful hacks. Using one line of javascript, you can see when the last time a web page was updated. Here is the code to paste into your address box…


Since I found this, I have been using it all the time. It turns out to be a lot more useful than I ever imagined.

I just did it as I am editing this tech-recipe to show you what it looks like…



Try it. Right now! :) Just paste this code into your address bar and hit ENTER:

javascript:alert(document.lastModified)

This code will display the last time any web page was updated and display it in a message box on your screen.

The Conversation

Follow the reactions below and share your own thoughts.

9 Responses to “URL Hack to See When Page Was Last Updated”

  1. October 20, 2008 at 7:16 pm, asokha1 said:

    great hack

    Reply

  2. March 22, 2009 at 2:47 pm, Ralf Kaiser said:

    Does not work for me (i always get the current time displayed, no matter waht page i choose)

    Reply

  3. March 23, 2009 at 11:42 pm, brandon said:

    same problem as ralf.

    Reply

  4. April 29, 2009 at 1:26 pm, MJ said:

    I also get the actual date :(

    Reply

  5. January 15, 2010 at 11:22 pm, Anonymous said:

    Works for me. It does not seem to work on dynamic websites such as ASP or .NET.
    Just a theory but would make sense. The dynamic creation of the page would, I suppose, give it a modified date of “just now” :-)

    Try it with: http://www.atlanticgames.net, and then again once you log on

    Reply

  6. April 22, 2010 at 11:07 pm, trippman said:

    AMAZING hack. I use it all the time

    Reply

  7. September 03, 2010 at 9:40 pm, Emma Manderson said:

    Well I just tried it and I got January 1st, 1970. Which seems unlikely.

    Reply

  8. March 13, 2011 at 8:16 pm, P said:

    only shows when the page was last refreshed on your browser nothing usefull ..

    Reply

  9. September 16, 2012 at 2:39 pm, Teknoloji Blogu said:

    same problem as ralf.

    Reply

Leave a Reply

You may also like-

Google: How to Access Filter by Date Dropdown BoxGoogle: How to Access Filter by Date Dropdown BoxFiltering google searches by time periods has been one of the most frequently requested features. By manipulating the search url, you can trigger google's ... Flickr Hack:  Hidden alternative way for viewing photosFlickr Hack: Hidden alternative way for viewing photosI love flickr, but I often find default format annoying. This little URL hack will allow you to view the photos in a quicker, ...