URL Hack to See When Page Was Last Updated

Contributor Icon Contributed by MickeyMouse  
Tag Icon Tagged: Internet  

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.

 

8 Comments -


  1. asokha1 said on October 20, 2008

    great hack

  2. Ralf Kaiser said on March 22, 2009

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

  3. brandon said on March 23, 2009

    same problem as ralf.

  4. MJ said on April 29, 2009

    I also get the actual date :(

  5. Anonymous said on January 15, 2010

    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

  6. trippman said on April 22, 2010

    AMAZING hack. I use it all the time

  7. Emma Manderson said on September 3, 2010

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

  8. P said on March 13, 2011

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

 

RSS feed for comments on this post. TrackBack URL

Leave a comment -