search engine optimization articles do it yourself seo hiring search engine experts html and search engine optimization web site analysis and submission service

HTML Help: Determining Page Age

Is there a way to determine how old a web page is? Sometimes it would be nice to know if the information is fresh or years old.
There is a way, but it has limitations. Load the page you want to know about into your browser and then paste:
javascript:alert(document.lastModified)
...into the address bar of your browser and press the Enter key. A JavaScript alert will tell you when the page was last modified.

The limitations are two:

  • If the page is dynamic (generated from a database), or...
  • If the page has dynamic content such as news feeds, or has advertising called from another server (like Google Ads), or has other "live" feeds, the alert will always give you the date and time you loaded the page.
That's because the page is modified every time it is loaded. The alert isn't incorrect, it's just misleading unless you understand how it works.

This concludes the

HTML Help about Determining a Web Pages Last Updated Date

.
Back | HTML FAQ | HTML Tag Chart | HTML Index | Web Design Tutorials
search engine optimization course
If you want your web site to rank high in the search engines . . . what are you going to do to get it there? Check out my search engine optmization guide, SEO for YOU: Search Engine Optimization for Ordinary Everyday People!

Check out SEO for YOU now!

Almost a Newsletter

Subscribe today for exclusive website design tutorials and grab some free gifts to boot! Learn more, or subcribe below:
Email:

First Name:

Privacy Policy

Did you know...

The member's site has about 100 standards compliant HTML and CSS tutorials, 31 handy reference charts, reprintable content, web graphics, exclusive fonts, free software, free ebooks and more? All this for less than 9 cents a day! [ Details ]
See my fancy bottom! :)