URL Hack to See When Page Was Last Updated
Posted by MickeyMouse in 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.
The Conversation
Follow the reactions below and share your own thoughts.


October 20, 2008 at 7:16 pm, asokha1 said:
great hack
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)
March 23, 2009 at 11:42 pm, brandon said:
same problem as ralf.
April 29, 2009 at 1:26 pm, MJ said:
I also get the actual date
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
April 22, 2010 at 11:07 pm, trippman said:
AMAZING hack. I use it all the time
September 03, 2010 at 9:40 pm, Emma Manderson said:
Well I just tried it and I got January 1st, 1970. Which seems unlikely.
March 13, 2011 at 8:16 pm, P said:
only shows when the page was last refreshed on your browser nothing usefull ..
September 16, 2012 at 2:39 pm, Teknoloji Blogu said:
same problem as ralf.