Tech Xpress

Get Last Updated Web Page Date and Time

You may have come across a Web Page thinking you are reading the most current article; Only to find it was 3 years old.

This is a common problem many surfers face. Sometimes it helps when the last updated time is displayed just before the content on the web page.
But not all sites do it.
So, what is the solution?

Just go to the desired web page of your choice and paste the following code in your address bar:
javascript:alert(document.lastModified)

A message box pops up (figure below) showing you the date and time when the page was last updated.


However, for this to work, javascript must be enabled for your browser. This piece of trick will be useless with dynamic web pages which are updated very frequently.

A much better way to use this trick is to save the script as your bookmark or favorite.
The bookmarking process cannot be achieved directly.
Follow the steps given below to proceed:

For Internet Explorer
1. Open a blank page.
2. Go to Favorites >> Add to Favorites.
3. A blank Favorite is added to your Favorite list.
Right-Click the Favorite you just added and click Properties.
4. Now, in the URL box, Paste javascript:alert(document.lastModified) and click Ok.
Internet Explorer will show a message box. Ignore it by clicking Yes.
You can also rename your favorite to something like "Last Updated".
5. To use it, go to a web page and click the newly created Favorite.

For Firefox
Before you proceed, it is important that javascript is not disabled. Some Firefox extensions like NoScript automatically blocks javascript.

1. Open a blank page.
2. Go to Bookmarks >> Bookmark this Page.
3. A new bookmark is added to your bookmarks.
Right-Click the newly created Bookmark and Click Properties.
4. Paste javascript:alert(document.lastModified) in the location box and type a name of your choice as the bookmark name.
5. Click Ok. To use it, go to a web page and click the bookmark.

If you like this, click here to get updates by email

Click here to subscribe to my Feeds


Related Reading:
Internet Explorer 7 : Move Back and Forward without clicking the mouse
View pages in Firefox using the Internet Explorer engine
Always restore sessions in firefox 2.0
Set multiple home pages in Firefox
Disable automatic image resizing in Firefox 2
Disable tab scrolling in firefox 2
Change Tab Close buttons in Firefox 2
You can contribute with features and other stuff for Firefox 3

Tags:

Labels: , , ,

posted by Vijeesh Ravindran, Tuesday, November 21, 2006


9 Comments:

Interesting idea, however if there are ads or any other dynamic content on the page, the last updated date will end up being today - which doesn't help you verify that the content is up-to-date. I checked this on my own pages which haven't been updated in a while, and they all came up as being last updated today.
To compliment this post, this video guide will show you step by step how to know when a page was last updated: Know When Page Was Last Updated In 1 Easy Step!
Very helpful. Thanks Vijeesh!
hey man this trick is really a useless as it shows the time of updation of page, when that page opens at user's computer.
while i wanna know the updation time of webpage on server.
Thanks.... a lot...
nice post
I do not know how to use this idea. Every web page tested gives todays date???
Comment by Anonymous Anonymous on August 20, 2010 at 5:12 AM  
As the king kahn pointed out, this is useless. Just press the reload button of your browser while in the webpage and then apply the trick. It shows the date in which the page is updated on your computer.
Comment by Anonymous Anonymous on May 9, 2011 at 5:46 PM  
As stated above, dynamically created pages just show the current date, but there are web pages out there that do work with this trick. I found it useful.
Comment by Anonymous Anonymous on January 9, 2012 at 6:33 PM  
Very nice trick!