Warning: Invalid argument supplied for foreach() in /home/techrecipes/public_html/wp-content/themes/techrecipes/header.php on line 77

URL Hack to See When a Page Was Last Updated

Using one line of javascript, you can see the last time that a web page was updated. Read on to find out the code to paste into your address box.


Since I found this quick, simple hack, I have been using it frequently. It turns out to be a lot more useful than I ever imagined.

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



Try it 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 will display it in a message box on your screen.

The Conversation

Follow the reactions below and share your own thoughts.

  • asokha1

    great hack

  • http://www.emperortools.de Ralf Kaiser

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

  • brandon

    same problem as ralf.

  • MJ

    I also get the actual date :(

  • Anonymous

    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

  • trippman

    AMAZING hack. I use it all the time

  • http://twitter.com/elmsyrup Emma Manderson

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

  • http://pulse.yahoo.com/_DFVBXOY5YLUP7MBMOP4TZ4JEBA P

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

  • Teknoloji Blogu

    same problem as ralf.