How To Check ‘When Was A Web Page Last Updated?’


In case of a blog it is very easy do determine when was it last updated. You can check the date of the latest post (although some silly bloggers tend to change dates to give it the latest look if they don’t feel like updating the blog). But what about a website? Won’t you like to know when was a web page last updated?

All you have to do is copy and past the javascript code below in your address bar and it will show the date (in mm/dd/yyyy format) and time (in 24hrs format) as a pop up! Just copy paste the code below in your address bar once the site has loaded successfully.

javascript:alert(document.lastModified)

Like the google webmaster page was last updated on 18th June 2008!

[via Digital Quest]

Tags:

Related posts

New Here? Subscribe For Regular UpdatesE-Mail:   SignUp via RSS Feeds

6 Comments, Comment or Ping

  1. Even better, you can paste that code into a new bookmark – giving you one-click access to the modified date. Thanks for the tip!

  2. comeon guys…let me clarify this to you…

    It is easy on blogs only if the blog author displays the last modified date. most blogs display only the posted date.Guess, that is what you too show.

    document.lastmodified will return the last modifed date only if the page that your browse sends that as part of its http header and that too only if they return it correctly.For eg: you try opening this post in different tabs after a gap of a few seconds.It will show, different lastmodified dates.This implies that wordpress returns a last modifed date that is not correct.it just returns the server datetime that you access the post and not necessarily the last modified datetime.

    this can atbest be true only for static pages and not for something dynamic like wordpress posts/pages.

  3. The post is very clear that you can usually tell when a blog has been updated. This tip is useful for *other* web pages. Obviously, you haven’t bumped into any such static pages. I do, all the time, in my research. It’s nice to know how fresh the info is.

  4. Nice trick, but like Rajesh said tihs will be possible if the last modified headers are set by the server

  5. HI guys, I tried the above trick but its not working. It is showing the present date and time. Can anyone help me out please. I want to know when the website was last updated by the webmaster.

Reply to “How To Check ‘When Was A Web Page Last Updated?’”

More Useful Content

Going so soon? May these links be a guide to web enlightenment. Schwing!

Before you go

Please be generous to our sponsors. They are worth your visit.

Some Famous Articles

Some articles which were appreciated by all.