M
Michael Harding
Is there an easy way to find if a web page is recent and so, hopefully,
showing current information rather than from years ago?
showing current information rather than from years ago?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Happy said:When the web page is up, try inserting this Javascript in the address bar,
"javascript:alert(document.lastModified)" (without the " ") It should
tell you the last date updated, for many sites. Try it for a few, and let
us know how it worked.
Michael Harding said:Well I am the OP and am truly amazed at how effective this solution
is. Thanks a bunch, you've made me happy too.
MH
I'm not the OP but decided to try your suggestion. On several different
web
sites where I tried your suggestion, your javascript returns the current
date and time. The datestamp will be for the copy rendered by the
browser, not for when the file for the page was last updated on the
*server*. The javascript is not running on the server. It is running
locally on your own host, and what it runs against is what got downloaded
to your host. The "document" being checked is the one that was just
rendered by the browser.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.